定时器

from threading import Timer
 
def hello():
    print("hello, world")
 
t = Timer(1, hello)           经过1秒后执行hello函数
t.start()  # after 1 seconds, "hello, world" will be printed

  这个模块是我遇到的最简单的了。。。。。。。。。。。

posted @ 2017-08-30 15:00  一石数字欠我15w!!!  阅读(287)  评论(0编辑  收藏  举报