import schedule import time def job(): print("I'm working...") schedule.every(7).days.at('3:00').do(job) while True: schedule.run_pending() time.sleep(1)
上述代码正确么?
job()方法会不会得到执行呢?
请登录后评论
TOP
切换版块
跑通就行 跑不通就不行
自己试试不就行了