Update zhaoan.py

This commit is contained in:
Kontor 2021-03-10 16:21:34 +08:00 committed by GitHub
parent 07148aebd3
commit 1fccf6d7d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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