源码

首页 » 归档 » 源码 » python – FileNotFoundError:[Errno 2]没有这样的…

python – FileNotFoundError:[Errno 2]没有这样的…


参见英文答案 > Python open() gives IOError: Errno 2 No such file or directory????????????????????????????????????3个
我试图打开一个CSV文件但由于某种原因python无法找到它.

这是我的代码(它只是一个简单的代码,但我无法解决问题):

import csv

with open('address.csv','r') as f:
    reader = csv.reader(f)
    for row in reader:
        print row
(0)

本文由 投稿者 创作,文章地址:https://blog.isoyu.com/archives/python-filenotfounderrorerrno-2meiyouzheyangde.html
采用知识共享署名4.0 国际许可协议进行许可。除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。最后编辑时间为:9月 18, 2019 at 10:55 下午

热评文章