python2.7:IOError: [Errno 2] No such file or directory:

import os

print os.getcwd() #打印出当前工作目录

os.chdir('the dir which include the file a.txt') #修改当前工作目录

你可能感兴趣的:(python2.7:IOError: [Errno 2] No such file or directory:)