Think before you speak, read before you think.

python sleep

在调试代码的时候要分析 block

可以用 sleep 使程序 block 一段时间

#!/usr/bin/python
import time

print "Start : %s" % time.ctime()
time.sleep( 5 )
print "End : %s" % time.ctime()

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *