|
发表于 2019-11-13 13:21:17
|
显示全部楼层
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import pygame
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
>>>
这样是没安好吗,我的pygame用不了
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "E:/pythonworkspace/game.py", line 11, in <module>
player = pygame.image.load("resources/images/dude.png")
pygame.error: Couldn't open resources/images/dude.png
>>>
将您的射击游戏第一段代码复制了,找不到图片,IDLE如何建立resources文件夹,在哪建。
|
|