1

当我运行我的代码时,我得到

Traceback (most recent call last):
  File "c:\Users\Luke Coopman\Python\game2.py", line 226, in <module>
    main()
  File "c:\Users\Luke Coopman\Python\game2.py", line 221, in main
    window.setup()
  File "c:\Users\Luke Coopman\Python\game2.py", line 66, in setup
    self.scene = arcade.Scene()
AttributeError: module 'arcade' has no attribute 'Scene'

我从这里复制了代码:https ://arcade.academy/examples/platform_tutorial/step_08.html

4

1 回答 1

1

您很可能正在使用 Arcade2.5.7或更早版本。版本中引入了场景2.6.0类。因此,您需要将 Arcade 库更新到最新版本。

于 2021-09-07T14:05:12.577 回答