TypeError: add() argument after * must be an iterable, not Settings的错误原因

在抄代码的时候发现有个错误:

TypeError: add() argument after * must be an iterable, not Settings

看不懂,百度才知道原因,原来是第2行的 _init_ 写成了 _int_

1 class Alien(Sprite):
2     def __init__(self,ai_settings,screen):
3         super(Alien,self).__init__()
4         self.screen=screen
5         self.ai_settings=ai_settings
文章来自:https://www.cnblogs.com/Guhongying/p/10014209.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3