import time
def sayhello():
print "helloworld"
while True:
sayhello()
time.sleep(5)#五秒执行一次
【python学习.定时重复实现某代码的实现】
最新推荐文章于 2023-07-03 00:51:02 发布
import time
def sayhello():
print "helloworld"
while True:
sayhello()
time.sleep(5)#五秒执行一次