PytzUsageWarning: The normalize method is no longer necessary
PytzUsageWarning: The normalize method is no longer necessary
在Python中使用apscheduler进行定时任务,启动定时脚本时抛出错误PytzUsageWarning: The normalize method is no longer necessary。
原代码
from apscheduler.schedulers.blocking import BlockingScheduler
def crawler():
"""爬虫任务"""
pass
def main():
"""主函数"""
# 创建定时对象
scheduler = BlockingScheduler()
# 定义任务
scheduler.add_job(crawler, 'cron', day_of_week='tue
PytzUsageWarning: The normalize method is no longer necessary最先出现在Python成神之路。
共有 0 条评论