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