这个得利用os模块切换
import os #导入os模块
os.listdir() #查看当前目录下的文件
os.getcwd() #获取当前工作目录
os.chdir("目标目录") #修改当前工作目录