路径:获取 & 更改

os.getcwd() #用以获取当前的工作目录
os.chdir(path) #更改当前的工作目录
原文地址:https://www.cnblogs.com/wllwqdeai/p/13198312.html