ハイテク男を開くことができませんでした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
誰でもこの問題を解決できますか?
パスは正しいですか? –