转自: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
posted on 2018-07-05 21:03  邶风  阅读(141)  评论(0编辑  收藏  举报