def fun_timer():
    print('Hello Timer!')
    global timer
    timer = threading.Timer(3, fun_timer)
    timer.start()
timer = threading.Timer(1, fun_timer)
timer.start()

  

posted on 2019-07-31 11:50  itprobie-菜鸟程序员  阅读(218)  评论(0编辑  收藏  举报