当前位置:   article > 正文

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

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

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

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

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号