我一直在開發一款基于 Pygame 的打字速度測試游戲。我嘗試運行代碼,但不斷收到此錯誤: Traceback (most recent call last): File "/Users/beatricecesonyte/Downloads/python-project-typing-speed-game/speed typing.py", line 170, in <module> Game().run() File "/Users/beatricecesonyte/Downloads/python-project-typing-speed-game/speed typing.py", line 30, in __init__ self.open_img = pygame.image.load('type-speed-open.png')pygame.error: File is not a Windows BMP file我嘗試根據此錯誤查看其他問題,但似乎沒有任何效果......我正在使用 macOS Catalina、Python 3.8.5 和 Pygame我目前不是Python專業人士,所以請盡量解釋清楚!謝謝你!
添加回答
舉報
0/150
提交
取消