将函数作为参数传递,同时将该函数需要的参数一起传递.可参考threading.Timer的处理方式: class threading.Timer(interval, function, args=[], kwargs={}) Create a timer that will run function with arguments args and keyword arguments kwargs, after interval seconds have passed. 内部实现中,调用funct…