定时执行脚本

import schedule #定时模块
import time
import subprocess

def run_scripts ():
subprocess.run([“python”,“py文件路径”])

schedule.every().day.at(“12:05:03”).do(run_scripts)

while True:
schedule.run_scripts()
time.sleep (5)

你可能感兴趣的:(python,python)