程序员的基础教程:菜鸟程序员/80放映室
def fun_timer(): print('Hello Timer!') global timer timer = threading.Timer(3, fun_timer) timer.start() timer = threading.Timer(1, fun_timer) timer.start()