import threading,time global t def sayHello(): print time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())) t=threading.Timer(1.0,sayHello) t.start() t=threading.Timer(1.0,sayHello) t.start() 分析一下以上程序,其实,第二个 t=threading.Timer(1.0,sayHello) t.…