AttributeError: ‘module’ object has no attribute’xxx 问题解决

报错:AttributeError: ‘module’ object has no attribute’xxx

原来是,你创建的py脚本名字不能与python预留字,模块名等相同。比如包叫abcsat,import abcsat 之后,不要把创建的文件名写作abcsat.py。同时还要删除已经生成的pyc文件。

猜你喜欢

转载自blog.csdn.net/donglynn/article/details/78796046