How to update datetime regularly?

前端 未结 0 709
一生所求
一生所求 2020-12-05 03:19

I want to print out the datetime every second. When I ran

import time, datetime

t0 = time.time()

while True:
    print (time.strftime("%H:%M:%S",t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题