关于python单文件测试,运行引入报错的处理

2 阅读1分钟
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))