码迷,mamicode.com
首页 > 编程语言 > 详细

Python 之定时器

时间:2019-07-31 12:56:55      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:tar   pytho   glob   art   start   read   oba   定时   int   

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

  

Python 之定时器

标签:tar   pytho   glob   art   start   read   oba   定时   int   

原文地址:https://www.cnblogs.com/guohu/p/11275364.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!