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
原文地址:https://www.cnblogs.com/zhangxuan/p/9270478.html