python 播放WAV文件

import winsound

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chord.wav",winsound.SND_FILENAME)


你可能感兴趣的:(python,文件,播放音频)