python 实现定时任务

import time
import requests
def dojob():
	requests.get('http://localhost:8080/echarts')
	print("运行任务")
def loopfun():
	while True:
		dojob()
		time.sleep(30)
loopfun()

  

原文地址:https://www.cnblogs.com/zhangshijiezsj/p/14180755.html