코딩/Python
Python Schedule 설정
코딩왕 코주부
2021. 6. 30. 10:39
반응형
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)
반응형