定时器,指定n秒后执行某操作
from threading import Timer def hello(): print("hello, world") t = Timer(1, hello) t.start() # after 1 seconds, "hello, world" will be printed
定时器Timer
原文:https://www.cnblogs.com/yuexijun/p/11616009.html