EconomicSerg

Clock.py

Jan 19th, 2021 (edited)
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import datetime
  2. import time
  3. def clock():
  4.     while True:
  5.         print(datetime.datetime.now().strftime("%H:%M:%S"), end="\r")
  6.         time.sleep(1)
  7.  
  8. clock()
Add Comment
Please, Sign In to add comment