python 定时运行指定py程序
import time,os from datetime import date ,datetime import schedule def tick(): print("tick ! the time is : %s" % datetime.now()) os.system("python ka011b.py") #print("123") schedule.every().day.at("04:04").do(tick,) while True: schedule.run_pending() #run_pending:运行所有可以运行的任务