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