#!/usr/bin/python
#coding=utf-8
'''
Created on Nov 7, 2015
python定时任务测试
'''
import threading
def test_onetime_delay(myname,secName):
print(myname,secName)
if __name__ == '__main__':
threading.Timer(5,test_onetime_delay,["andygllin","thetwoname"]).start()#延迟5秒执行一次
#coding=utf-8
'''
Created on Nov 7, 2015
python定时任务测试
'''
import threading
def test_onetime_delay(myname,secName):
print(myname,secName)
if __name__ == '__main__':
threading.Timer(5,test_onetime_delay,["andygllin","thetwoname"]).start()#延迟5秒执行一次