AttributeError:'int'对象没有属性'_erase'Python 3.1

时间:2019-02-10 15:15:32

标签: python attributeerror livewires

我正在Python 3.1中工作,我想做一个避免掉落物体的游戏。我总是收到模块错误。

我的火线是1.9.1 ..

games.screen.background = games.load_image("boaj.jpg")
budala = Budala()
games.screen.add(budala)                                      
games.screen.add(Covjek(image = games.load_image("kamijonhehe.jpg"),
                        x = games.screen.width/2,
                        bottom = 720))
games.screen.event_grab = True
games.mouse.is_visible = False
games.music.load("smukwed.mp3")
games.music.play()
games.music.play()
games.screen.mainloop()

完整错误代码:

Traceback (most recent call last):
  File "C:\Users\nikol\Desktop\Python\prugrami limun\izbegavalje.py", line 
71, in <module>
    games.screen.mainloop()
  File "C:\Python31\lib\site-packages\livewires\games.py", line 303, in 
mainloop
    object._erase()
AttributeError: 'int' object has no attribute '_erase'

如果您需要完整的代码,请在评论中提问

0 个答案:

没有答案