我想知道无论如何我可以在不导入像pygame这样的外部库的情况下播放声音。像这样的东西:
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