python windows环境响铃

import winsound
winsound.Beep(600,1000)
#其中600表示声音大小,1000表示发生时长,1000为1秒
原文地址:https://www.cnblogs.com/Yangami/p/10651144.html