改变工作目录 2017-04-20 本文已影响0人 孔李聃丘 import os os.getcwd() # 查看当前工作目录 os.chdir("D:\Python\some_other_directory") # 改变目录,注意双引号和反斜杠