pygame模块使用时出现AttributeError: module ‘pygame’ has no attribute '…'错误解决方法

pygame模块使用时出现AttributeError: module ‘pygame’ has no attribute '…'错误解决方法

首先在pygame中存在init()模块,出现这样的问题是你的python文件名起的不对,将文件名改过来即可。

 

注:检查文件名是否为pygame.py不可以跟pygame模块同名。

原文地址:https://www.cnblogs.com/Gaowaly/p/14401065.html