我使用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。