首页 > 代码库 > python 播放WAV文件

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)


本文出自 “星河码头” 博客,请务必保留此出处http://liy607.blog.51cto.com/2892862/1441121

python 播放WAV文件