我想知道是否有我可以发挥声音没有像pygame进口外部库。像这样:如何在Python中播放声音?
import os
import sound
mysound = sound.load("mysound.mp3") # gets the sound "mysound.mp3"
while True:
input("Press enter to play sound")
sound.play(mysound) # plays the sound mysound
os.system('cls') # clears the console
你可以找到答案[这里](http://stackoverflow.com/questions/1804366/playing-mp3-files-with-python) – Cody
这是非常人为的,可能不是你的意思,但你可以使用:打印“\ a”发出声音。 – purpleladydragons