嗨,我想跟进我的
question
. 我找到了另一个问题的解决方案。不过,我还是想办法解决这个问题。有没有办法从APScheduler打印时间?
我用过:
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor
sched = BackgroundScheduler(timezone='America/Toronto', executors=executors)
import pytz
toronto = pytz.timezone('America/Toronto')
从那个时区得到时间。但是,它是重复的,是吗?那么,有没有一种方法可以单独使用APScheduler来实现这一点呢?