Advanced Python Scheduler是一个python的定时执行任务的框架,调用无比简单,不用自己写定时器了
演示代码
from apscheduler.scheduler import Scheduler sched = Scheduler() @sched.interval_schedule(hours=3) def some_job(): print "Decorated job" sched.configure(options_from_ini_file) sched.start()