Python导入上级目录的模块

Python导入上级目录的模块

  • 2019-10-1
1
2
from sys import path; path.append('..')
from utils import config_loader # 这个 utils 是上级目录的