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')
謝謝我已經設法解決它 –