admin 管理员组

文章数量: 1184232

使用 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)

本文标签: 想让 示例 不要用 请给 模块