python 播放WAV文件

2020-01-08 11:34:51 浏览数 (2)

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)

0 人点赞