import pygame
pygame.init()
我得到这个错误AttributeError的:“模块”对象有没有属性“初始化”
File "C:/Python34/game1.py", line 2, in <module>
pygame.init()
AttributeError: 'Module' object has no attribute 'init'
不能发布代码,所以这里是一个图像 https://s31.postimg.org/retln74zf/image.jpg
你能发表你的代码吗? –
您是否正在处理多个文件或不同目录中的多个文件?如果是这种情况,请不要忘记在文件夹内放置一个名为“__init__.py”的空文件,以便像Python模块一样运行。 –
https://s31.postimg.org/retln74zf/image.jpg –