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

python实现倒计时的示例

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-16 08:45:152265browse

复制代码 代码如下:

import time
count = 0 
a = input('time:') 
b = a * 60 
while (count  ncount = b - count 
 print ncount 
 time.sleep(1)
 count += 1 
print 'done' 
Statement:
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