📜  python 每小时安排一次任务 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:46.197000             🧑  作者: Mango

代码示例1
from apscheduler.schedulers.blocking import BlockingScheduler

def some_job():
    print "Decorated job"

scheduler = BlockingScheduler()
scheduler.add_job(some_job, 'interval', hours=1)
scheduler.start()