1 import os
2 print(os.getcwd()) #获取当前工作目录路径
3 print(os.path.abspath(‘.’)) #获取当前工作目录路径