使用 Python 的 schedule 模块,每月执行一次的示例代码如下:
import schedule
import time
def job():
print("Job is running!")
schedule.every().day.at("12:00").do(job)
while True:
schedule.run_pending()
time.sleep(1)
使用 Python 的 schedule 模块,每月执行一次的示例代码如下:
import schedule
import time
def job():
print("Job is running!")
schedule.every().day.at("12:00").do(job)
while True:
schedule.run_pending()
time.sleep(1)