threading.Timer threading.Timer是threading.Thread的子类,可以在指定时间间隔后执行某个操作。下面是Python手册上提供的一个例子: [python] view plain copy def hello(): print "hello, world" t = Timer(3, hello) t.start() # 3秒钟之后执行hello函数。