Skip to content

Instantly share code, notes, and snippets.

@mr-yoo
Created May 30, 2021 12:05
Show Gist options
  • Save mr-yoo/0250f579a3add84f17861e4f0542eacf to your computer and use it in GitHub Desktop.
Save mr-yoo/0250f579a3add84f17861e4f0542eacf to your computer and use it in GitHub Desktop.
5초에 한 번 현재 시간을 출력
import time
import datetime
while True:
now = datetime.datetime.now()
print(now)
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment