python 编写延时操作

如何使用python语言来编写延迟操作呢? 请看下面的代码:
[cc lang=”python”]
import time
for i in range (10,-1,-1):
print i
time.sleep(1)
[/cc]
[cc lang=”python”]
import time
for i in range (11)[::-1]:
print i
time.sleep(1)
[/cc]

Leave a Reply