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:运行所有可以运行的任务
标签:schedule,python,py,datetime,import,定时,tick From: https://www.cnblogs.com/xkdn/p/16801345.html