Python apscheduler 立即启动功能,没有在给定时间启动?

Python apscheduler start function immediately, Not starting on given time?

from apscheduler.schedulers.blocking import BlockingScheduler
from GoogleSheetAPI import writedata
sched = BlockingScheduler()

sched.add_job(writedata,'corn' day_of_week='mon-fri', hour=10, minute=30)
sched.start()

它立即启动功能,不等待给定时间。我正在尝试 运行 每个星期一到星期五 10:30

您的函数调用中有两个拼写错误:

sched.add_job(writedata, 'cron', day_of_week='mon-fri', hour=10, minute=30)

如果这不起作用,add extended logging 到您的代码。