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())
Second pause output, and format the current time.
Guess you like
Origin blog.csdn.net/cc_park/article/details/104341082
Recommended
Ranking