python报错 在game_functions.py中 定义的 fire_bullet中的if len(bullets)<ai_settings.bullet_allowed 在settings.py中已经设置了self.bullet_allowed=3 然后报错说是Ship object has no attribute bullet_allowed

python报错 在game_functions.py中 定义的 fire_bullet中的if len(bullets)<ai_settings.bullet_allowed 在settings.py中已经设置了self.bullet_allowed=3 然后报错说是Ship object has no attribute bullet_allowed

兄弟是不是调用fire_bullet()的参数写错了
截图看看