不同目录的调用

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()

猜你喜欢

转载自www.cnblogs.com/LittleSpring/p/9381379.html