0
我從蟒蛇Cron-job(例1)閱讀文檔:帶有python參數的函數指針?
from apscheduler.scheduler import Scheduler
# Start the scheduler
sched = Scheduler()
sched.start()
def job_function():
print "Hello World"
# Schedules job_function to be run on the third Friday
# of June, July, August, November and December at 00:00, 01:00, 02:00 and 03:00
sched.add_cron_job(job_function, month='6-8,11-12', day='3rd fri', hour='0-3')
是有可能paremters添加到job_function
以及如何將它們傳遞給add_cron_job
?