首页 > 其他 > 详细

倒计时闹钟

时间:2017-07-03 15:43:49      阅读:266      评论:0      收藏:0      [点我收藏+]
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)

倒计时闹钟

原文:http://www.cnblogs.com/e35t/p/7111307.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!