def getCurDir(): curDir=os.getcwd(); return curDir; 转载于:https://www.cnblogs.com/Bbrook/p/4348672.html