Python3學習(八):使用schedule模塊定時執行任務

python中有一個輕量級的定時任務調度的庫:schedule。他能夠完成每分鐘,每小時,天天,周幾,特定日期的定時任務。所以十分方便咱們執行一些輕量級的定時任務。python 代碼以下:linux import schedule import time def job(): print("I'm working...") schedule.every(10).minutes.do
相關文章
相關標籤/搜索