用户目录:
os.path.realpath(os.path.expanduser(’~’))
当前目录(程序启动目录):
RunPath = os.path.realpath(os.path.curdir)
其中realpath,用来返回绝对路径:
os.path.realpath()
用户目录:
os.path.realpath(os.path.expanduser(’~’))
当前目录(程序启动目录):
RunPath = os.path.realpath(os.path.curdir)
其中realpath,用来返回绝对路径:
os.path.realpath()