初学小白请教一下大佬们 程序报错
python吧
全部回复
仅看楼主
level 1
我想用pygame播放一段音乐为什么报错呀(以下代码)
2026年06月20日 08点06分 1
level 1
import turtleimport pygame
# 初始化pygame.init()#
创建游戏窗口win_width, win_height = 800, 600window = pygame.display.set_mode((win_width, win_height))sound_file = "sounds/M01-13.mp3"sound = pygame.mixer.Sound(sound_file)running = Truewhile running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False
2026年06月20日 08点06分 4
level 1
2026年06月20日 08点06分 5
level 1
? 刚才又运行了一遍 跳框了 但是没声音 好迷
2026年06月20日 08点06分 6
level 1
... 可以了 好谜
2026年06月20日 08点06分 7
1