定时调用

from apscheduler.schedulers.background import BackgroundScheduler

def update():
     pass

scheduler = BackgroundScheduler()
scheduler.add_job(update, 'interval',  max_instances=10, seconds=10)
scheduler.start()

 

posted @ 2019-12-24 09:59  牧马人夏峥  阅读(103)  评论(0编辑  收藏  举报