python中的time

import time
from datetime import datetime

tt = time.strftime("%Y%m%d_%H%M%S")

print(tt)

time.sleep(5)

print(tt)

  

posted @ 2021-02-17 18:04  巴黎爱工作  阅读(61)  评论(0编辑  收藏  举报