06

import time
import datetime
t1 = time.strftime("%H/%M/%S/")
b = datetime.datetime.strptime(f'{t1}','%H/%M/%S/')
t = b.strftime('%H{}%M{}%S{}').format('小时','分','秒',)
print(t)

 

posted @ 2021-10-24 11:48  yc。  阅读(67)  评论(0编辑  收藏  举报