admin管理员组

文章数量:1130349

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

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