weixin_39915694的博客按照书上的编写的一个python的飞船游戏 代码也都是按照书上的编写的 但就不知道问题出在哪里AttributeError: 'Ship' object has no attribute 'bullet_width'到运行飞船左右移动的时候都是没有问题的,但是到了创建...
weixin_39769039的博客win7系统,照书上编写了一个python的飞船游戏,按照书上的编写的,但不知道问题出在哪里AttributeError: ‘str’ object has no attribute ‘get_rect’完整代码alien_invasion.pyimport sysimport pygamefrom ...
骑猪的骑士的博客PYGAME中的飞机大战出现的’Settings’ object has no attribute 'get_rect’这种类似的问题都是主程序和子程序中参数的顺序相同,这里出现的这个问题主要是在alien_invasion.py中的 ship=Ship(ai_settings,screen) ...