没什么用的东西
由于过于无聊而编写。
WARNING:低技术力
温馨提示:每秒刷新,运气不好会卡
效果图:

代码:
#!usr/bin/env python3
# -*- coding:UTF-8 -*-
import time
import os
while True:
t=time.localtime()
Y=time.strftime('%Y',t)
m=time.strftime('%m',t)
d=time.strftime('%d',t)
A=time.strftime('%A',t)
HMS=time.strftime('%H:%M:%S',t)
linghe=2019-1
print("令和 {} 年".format(int(Y)-linghe))
Aa={'Sunday':'日曜日','Monday':'月曜日',
'Tuesday':'火曜日','Wednesday':'水曜日',
'Thursday':'木曜日','Friday':'金曜日',
'Saturday':'土曜日'}
A=Aa[A]
print(f"{Y}年{m}月{d}日 {A}\r\n{HMS}")
time.sleep(1)
os.system('cls')
END
Bilibili@GALACTIC
本人B站主页欢迎访问
3万+

被折叠的 条评论
为什么被折叠?



