Python3学习(八):使用schedule模块定时执行任务

python中有一个轻量级的定时任务调度的库:schedule。他能够完成每分钟,每小时,天天,周几,特定日期的定时任务。所以十分方便咱们执行一些轻量级的定时任务。python 代码以下:linux import schedule import time def job(): print("I'm working...") schedule.every(10).minutes.do
相关文章
相关标签/搜索