run_game()为什么老是返回错误
Traceback (most recent call last): File "alien_invasion.py", line 31, in <module>
run_game()
File "alien_invasion.py", line 13, in run_game
ai_settings=Settings()
File "C:\Users\15260\Desktop\alien_invasion\settings.py", line 10, in __init__
self.bg_color(230,230,230)
AttributeError: 'Settings' object has no attribute 'bg_color'
回答:
为什么不给个代码呢,根据所提供的,我猜是打错单词了
以上是 run_game()为什么老是返回错误 的全部内容, 来源链接: utcz.com/p/937662.html