import os import sys print(__file__)#得到相对路径 print(os.path.abspath(__file__))#得到绝对路径 print(os.path.dirname(os.path.abspath(__file__)))#得到目录名day04,不要文件文件名 BASE_DIR=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))#ATM sys.path.append(BASE_DIR) from conf import settings from core import main main.login()
软件目录结构规范
最新推荐文章于 2024-02-28 10:22:29 发布