第五周最后一题
import time
import datetime
t1 = time.strftime("%H/%M/%S/%A/")
b = datetime.datetime.strptime(f'{t1}','%H/%M/%S/%A/')
t = b.strftime('%Y{}%m{}%d{}%H{}').format('小时','分','秒','星期')
print(t)
import time
import datetime
t1 = time.strftime("%H/%M/%S/%A/")
b = datetime.datetime.strptime(f'{t1}','%H/%M/%S/%A/')
t = b.strftime('%Y{}%m{}%d{}%H{}').format('小时','分','秒','星期')
print(t)