Python获取当前路径

>>> import os
>>> homedir = os.getcwd()
>>> os.chdir("d:\")

原文地址:https://www.cnblogs.com/gispathfinder/p/9532831.html