Python Schedule 설정

2021. 6. 30. 10:39코딩/Python

반응형
import schedule
import time
decider = True

def hello():
    print("I'm working...%s"%time.ctime())


schedule.every().day.at("10:36").do(hello)
# 12시간마다
#schedule.every(12).hours.do(hello)

while decider:
    schedule.run_pending()
    time.sleep(1)
반응형