python新人求助 No such file or directory
C:\Users\dell>C:\myscript\ex15.py ex15_sample.txt
Traceback (most recent call last):
File "C:\myscript\ex15.py", line 7, in <module>
txt=open(filename)
IOError: [Errno 2] No such file or directory: 'ex15_sample.txt'
#在《笨办法学Python》的第15节卡住了,脚本运行不了,ex15_sample.txt和ex15.py都在myscript目录下的,为什么打不开呀