7段数码管绘制 画出系统时间。具体包括:年,月,日,小时。

画出系统时间。具体包括:年,月,日,小时。

import time
import datetime
t1 = time.strftime("%Y/%m/%d/%H/")
b = datetime.datetime.strptime(f'{t1}','%Y/%m/%d/%H/')
t = b.strftime('%Y{}%m{}%d{}%H{}').format('年','月','日','时')
print(t)

7段数码管绘制   画出系统时间。具体包括:年,月,日,小时。

 

上一篇:Python中根据时间自动创建文件夹


下一篇:阿里云上传