0

我正在使用 Pygame 和 livewire 来练习一些基本的图形操作。

我遇到了一个小错误:

    RESTART: C:\Users\Timothy\AppData\Local\Programs\Python\Python35-32\Scripts\NewWindow.py 
Traceback (most recent call last):
    File "C:\Users\Timothy\AppData\Local\Programs\Python\Python35-32\Scripts\NewWindow.py", line 4, in <module>
    from livewires import games
ImportError: cannot import name 'games'

我的代码仅仅是:

from livewires import games

games.init(screen_width = 640, screen_height = 480, fps = 50)

games.screen.mainloop()

我目前在 python 下的 Lib 文件夹中有 pygames 和 livewire。

4

0 回答 0