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