AttributeError: partially initialized module ‘xxxx‘ has no attribute ‘xxxx‘ (most likely due to a ..

你的名字 2022-10-12 15:56 189阅读 0赞
  1. AttributeError: partially initialized module 'xxxx' has no attribute 'xxxx' (most likely due to a circular import)

两个py文件相互进行了 import 导致了错误是循环调用

解决方法:避免使用循环调用,去除py1中的: import py2

发表评论

表情:
评论列表 (有 0 条评论,189人围观)

还没有评论,来说两句吧...

相关阅读