Skip to content Skip to main navigation Skip to footer

python 编写延时操作

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

import time
for i in range (10,-1,-1):
    print i
    time.sleep(1)
 
import time
for i in range (11)[::-1]:
    print i
    time.sleep(1)
 
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.