倒计时闹钟
import time,winsound
sfile='tada.wav'
while 1:
count=0
a=int(input('time by Min:'))
b=a*60
while (count<b):
ncount=b-count
print (ncount)
time.sleep(5)
count+=5
print ('done')
for i in range(3):
winsound.PlaySound('C:\Windows\Media\\{}'.format(sfile), winsound.SND_FILENAME)
浙公网安备 33010602011771号