嗨,大家好即時通訊有問題,在導入圖像到我的pygames腳本Pygames導入圖像:「無法打開
我的代碼:
from gasp import*
begin_graphics(800,600,"My Game",color.GREEN)
Image("C:\Users\Yuvinng\Downloads\982960f3d1joong.jpg",(400,300), None, None)
end_graphics()
錯誤:
Traceback (most recent call last):
File "C:\Python32\testing idle codes\GASP", line 5, in <module>
Image("C:\Users\Yuvinng\Downloads\982960f3d1joong.jpg",(400,300), None, None)
File "C:\Python27\lib\site-packages\gasp\api.py", line 267, in __init__
backend.create_image(self)
File "C:\Python27\lib\site-packages\gasp\backend.py", line 302, in create_image
obj.sprite.image = pygame.image.load(obj.path_name).convert()
error: Couldn't open C:\Users\Yuvinng\Downloads\982960f3d1joong.jpg
任何人都可以解決這個問題嗎?
確定路徑正確嗎? –