AttributeError: partially initialized module 'xxxx' has no attribute 'xxxx' (most likely due to a circular import)

错误是循环调用导致的。
1.py调用2.py,同时2.py调用1.py
解决方法:尽量不要使用循环调用。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐