import pygame pygame.init() pygame.mixer.music.load("sound_file.ogg") pygame.mixer.music.play() pygame.event.wait()
希望本文所述对大家的Python程序设计有所帮助。