Home > Backend Development > Python Tutorial > python实现倒计时的示例

python实现倒计时的示例

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-16 08:45:15
Original
2262 people have browsed it

复制代码 代码如下:

import time
count = 0 
a = input('time:') 
b = a * 60 
while (count  ncount = b - count 
 print ncount 
 time.sleep(1)
 count += 1 
print 'done' 
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template