import os
获得项目路径
project_path = os.getcwd()
获得当前文件所在目录
project_path = os.path.dirname(os.path.abspath(__file__))
print(project_path)
import os
获得项目路径
project_path = os.getcwd()
获得当前文件所在目录
project_path = os.path.dirname(os.path.abspath(__file__))
print(project_path)