import urllib2 def main(): Log("开始检查@") while True: try: urllib2.urlopen("https://quant.la/API/Argus/predict", timeout=15) Log("服务正常") except: Log(_D()," 服务异常@") Sleep(10*60*1000)