python未修辞的计时器

学习记录,超简单的计时器,简单的代码学会了如何在程序中进行计时处理。

import time,sys
while True:
     s=time.ctime()
     length=len(s)
     print s
     time.sleep(30)  #每30秒执行一次
     
原文地址:https://www.cnblogs.com/xiaowuyi/p/2482855.html