Timer

Posted zhangxuan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Timer相关的知识,希望对你有一定的参考价值。

转自:http://www.cnblogs.com/alex3714/articles/5230609.html

def hello():

    print("hello, world")
 
= Timer(30.0, hello)
t.start()  # after 30 seconds, "hello, world" will be printed

以上是关于Timer的主要内容,如果未能解决你的问题,请参考以下文章