0
저는 Python을 배우고 있으며 고급 스케줄러를 사용하고있었습니다. 그래도 작동시킬 수는 없습니다.APScheduler가 python을 실행하지 않습니다.
import time
from datetime import datetime
from apscheduler.scheduler import Scheduler
sched = Scheduler(standalone=True)
sched.start()
#@sched.cron_schedule(second=5)
def s():
print "hi"
sched.add_interval_job(s, seconds=10)
i=0
while True:
print i
i=i+1
time.sleep(3)
sched.shutdown()
나는 기본적인 것을 놓치고 있습니다. 누군가 그것을 지적 해 주시겠습니까?
또한 고급 스케줄러에 crontab을 권하고 싶습니다. 내 스크립트가 24 시간마다 실행되기를 원합니다. 감사합니다