python3.X
1rash_sound = pygame.mixer.Sound("crash.wav") 2pygame.mixer.Sound.play(crash_sound)
このコードを実行すると、
python3.x
1 Traceback (most recent call last): 2 File "C:\Users\######\Desktop\gamegame\racecar14sounds.py", line 8, in <module> 3 crash_sound = pygame.mixer.Sound("crash.wav") 4pygame.error: Unable to open file 'crash.wav'
上のように、ファイルが見つからないと返ってくるのですが、どうすればいいのでしょうか?
python3.5を使用しています
crash.wavファイルはどこにありますか?(C:\Users\######\Desktop\gamegame\以下にあるか)
gamegame\下にあります