lks1880s的博客#Pygame中的 AttributeError: ‘Group’ object has no attribute 'rect’ 在使用Pygame编写程序时,会需要检测两个物体碰撞,如果这两个物体的一个是精灵(单个物体),一个是组,会使用到函数pygame.sprite....
gilihui2008的博客), ^ File "D:\Python\Python313\Lib\site-packages\pygame\sprite.py", line 574, in (spr.image, spr.rect, None, special_flags) for spr in sprites ^^^^^^^^ AttributeError: 'Aliens' object has no attribute...
王子源Aisling的博客所以,我的问题是,我试图画一个矩形,但我一直得到一个错误,说'pygame.Surface' object has no attribute 'color'。有人能帮我吗?在完整错误消息Traceback (most recent call last):File "main.py", line 64, in ...
Ying~~的博客代码我与源码对照了,但还是报错“AttributeError: 'MainGame' object has no attribute 'blitEnemyTank'. Did you mean: 'createEnemyTank'?”,有哪位大佬能帮忙解决一下问题吗?感谢大佬们 #导入pygame模块 ...