Update zhaoan.py

This commit is contained in:
Kontor 2021-03-10 16:21:34 +08:00 committed by GitHub
parent eb8acd16c2
commit 9320781dc3

View file

@ -57,7 +57,7 @@ def calendar():
y = nowdate.year
m = nowdate.month
d = nowdate.day
zc = int(nowdate.strftime("%W")) - 1
zc = int(nowdate.strftime("%W")) - 8
z = zmc[nowdate.weekday()]
@ -68,5 +68,5 @@ def calendar():
if lunarday.Lleap:
lunardaychinese = "" + lunardaychinese
cal = f"{m}{d}日,{lunardaychinese}寒假{zc}周,星期{z}\n\n距离 2022 考研还有 {djs}"
cal = f"{m}{d}日,{lunardaychinese}{zc}教学周,星期{z}\n\n距离 2022 考研还有 {djs}"
return cal