文件打开出错 求解
>>> f = open('record.txt')Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
f = open('record.txt')
FileNotFoundError: No such file or directory: 'record.txt'
>>>
打开文件出错,怎么回事。球指点 FileNotFoundError: No such file or directory:
文件不存在
这么明显的提示,大老。
文件在什么位置,该加路径的地方加路径;再看看文件名是不是打错了。
页:
[1]