Python 改变和获取当前工作目录

import os

os.chdir("目标目录")   #修改当前工作目录

os.getcwd()    #获取当前工作目录

原文地址:https://www.cnblogs.com/klausage/p/15383210.html