Second pause output, and format the current time.

import time
print( time.strftime("%Y-%m-%d %H:%M:%S"),time.localtime())
time.sleep(1)
print( time.strftime("%Y-%m-%d %H:%M:%S"),time.localtime())
Published 44 original articles · won praise 1 · views 1373

Guess you like

Origin blog.csdn.net/cc_park/article/details/104341082