python 编写延时操作

如何使用python语言来编写延迟操作呢? 请看下面的代码:

1
2
3
4
import time
for i in range (10,-1,-1):
    print i
    time.sleep(1)
1
2
3
4
import time
for i in range (11)[::-1]:
    print i
    time.sleep(1)

Leave a Reply