定时器

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

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

原文地址:https://www.cnblogs.com/52-qq/p/7453174.html