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成神之路

版权声明:
作者:Zad
链接:https://www.techfm.club/p/10369.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>