BOOKS\python\my-projects\AlienInvasion\ship.py", line 10, in __init__AttributeError: 'pygame.Surface' object has no attribute 'screen' 我的代码是: AlienInvasion.py # Importing modules
workspace\TheWaterIsRising\src\default\RisingMain.py", line 59, in <module>AttributeError: 'pygame.Surface' object has no attribute 'display'
我在谷歌上搜索过很多其他属性错误,但是没有看到任何关于“display”属性的内容。
所以,我的问题是,我试图画一个矩形,但我不断得到一个错误,说'pygame.Surface' object has no attribute 'color'。有人能帮我吗?Dropbox\Dev Stuff\Games\Snake\sprites.py", line 15, in drawAttributeError: 'pygame.Surface' object has no attri
site-packages\pygame\sprite.py", line 1523, in spritecollideAttributeError: 'pygame.Surface' object has no attribute 'rect'from pygame import *
from random import