【问题标题】:I have question abour this ValueError: I/O operation on closed file我对这个 ValueError: I/O operation on closed file 有疑问
【发布时间】:2021-03-02 17:20:17
【问题描述】:

导入 csv

with open('haitham.csv.txt','r') as csv_file: #file :

#list = file.readlines()
csv_reader = csv.reader(csv_file)

对于 csv_reader 中的行: 打印(行)

【问题讨论】:

  • 问你的问题。并为您的代码使用适当的降价。

标签: python python-3.x python-2.7 python-requests


【解决方案1】:

将文件名 haitham.csv.txt 更改为 haitham.csv

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-17
    • 2015-11-27
    • 1970-01-01
    • 1970-01-01
    • 2021-05-19
    • 1970-01-01
    相关资源
    最近更新 更多