定时任务模块 schedule

# coding:utf-8
from learning_python.Telegram_push.check_hardware import check_cpu
import schedule
import time
schedule.every(5).seconds.do(check_cpu)
while True:
    schedule.run_pending()
    time.sleep(1)

  

posted on 2019-04-09 16:17  杨秀峰blog  阅读(194)  评论(0编辑  收藏  举报

导航