0
我已经证实“apples.txt”确实存在。我的代码有什么问题?IOError:Errno 2没有这样的文件或目录python
def Loadfile(fileName):
myfile=open(fileName,'r')
next(myfile)
for line in myfile:
linesplit=line.split()
print line
print Loadfile('apples.txt')
谢谢我已经设法解决它 –