python读取csv文件后,打印内容再return返回内容,返回值为空
摘要:
1、以下代码返回值是正确的 import os,csv def read_csv(path): with open(path, 'r', encoding='utf-8') as f: res = csv.reader(f) return list(res)[1:] if __name__ == ' 阅读全文
posted @ 2025-09-21 22:42 思念妮的狗 阅读(7) 评论(0) 推荐(0)
浙公网安备 33010602011771号