#!/usr/bin/env python
#coding=utf-8
import threading
def sayhello():
print "hello world"
global t #Notice: use global variable!
t = threading.Timer(5.0, sayhello)
t.start()
t = threading.Timer(5.0, sayhello)
t.start()
Python 定时器 timer
最新推荐文章于 2021-02-09 07:14:54 发布
