#coding=utf-8
import threading
#定义函数
def funTimer():
print 1
global timer
timer = threading.Timer(1,funTimer)
timer.start()
timer = threading.Timer(1,funTimer)
timer.start()
#coding=utf-8
import threading
#定义函数
def funTimer():
print 1
global timer
timer = threading.Timer(1,funTimer)
timer.start()
timer = threading.Timer(1,funTimer)
timer.start()
本文标题:python2.7 定时器
本文链接:https://www.haomeiwen.com/subject/eynewftx.html
网友评论