Python定时循环执行某一函数的方法
Python定时循环执行某一函数的方法,下方的intervalRun是定时执行的函数
import threading as thd
#定时执行
def intervalRun():
print 'hello'
thd.Timer(15,intervalRun).start() #每15s执行
import threading as thd
#定时执行
def intervalRun():
print 'hello'
thd.Timer(15,intervalRun).start() #每15s执行