常用函数
- id()
- dir()
- help()
os.linesep 系统换行符
os.getcwd
当前工作目录
# 获取当前文件路径
filePath = os.path.dirname(os.path.abspath(sys.argv[0]))
# 获取当前工作目录
pwd = os.getcwd()
os.linesep 系统换行符
os.getcwd
当前工作目录# 获取当前文件路径
filePath = os.path.dirname(os.path.abspath(sys.argv[0]))
# 获取当前工作目录
pwd = os.getcwd()
原文:https://www.cnblogs.com/xiangyang-li/p/8419725.html