import os import sys BasePath = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) print(BasePath) sys.path.append(BasePath) from core import main main.login()
import os import sys BasePath = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) print(BasePath) sys.path.append(BasePath) from core import main main.login()
转载于:https://www.cnblogs.com/LittleSpring/p/9381379.html