再次添加sys路径对我有用,
import syssys.path.insert(0,os.path.abspath(os.path.dirname(__file__)))
上一篇 检查文件是否存在的Python方法?[重复]
下一篇 如何在Python中创建只读类属性?[重复]
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号