我目前有一个很大很长的文件,可以查询网页来构建字典。我希望这个文件在每天凌晨4点重新启动,因为网页将用最新的信息更新。我需要在while True:循环中放入什么?The Code to Restart the process goes here #Other Stuff happens with the dictionary 在windows上构建和测试,但最终将在Raspberry Pi上运行
我希望每天在特定的时间安排一个作业(运行python脚本),直到达到特定的日期。在研究了大量Pythonic调度程序之后,我认为APScheduler是一个很好的解决方案。这是一个使用APScheduler的示例片段,它启动作业并在指定日期后每两小时执行一次。from datetime import datetime
from