解决已知问题

This commit is contained in:
EillesWan 2023-02-12 03:42:56 +08:00
parent 82328efaaf
commit 8082e12431
2 changed files with 7 additions and 14 deletions

View File

@ -88,18 +88,11 @@ elif nowYang.month == 4 and nowYang.day == 3:
)
else:
# 显示箴言部分
try:
MainConsole.print(
"[#121110 on #F0F2F4]{}".format(random.choice(myWords)),
style="#121110 on #F0F2F4",
justify="center",
)
except (ConnectionError, SSLError):
MainConsole.print(
"[#121110 on #F0F2F4]以梦想为驱使 创造属于自己的未来",
style="#121110 on #F0F2F4",
justify="center",
)
MainConsole.print(
"[#121110 on #F0F2F4]{}".format(random.choice(myWords)),
style="#121110 on #F0F2F4",
justify="center",
)
prt(f"{_('LangChd')}{_(':')}{_(currentLang)}")

View File

@ -22,10 +22,10 @@ try:
.split("\n")
)
except (ConnectionError, SSLError):
myWords = "以梦想为驱使 创造属于自己的未来"
myWords = ["以梦想为驱使 创造属于自己的未来"]
# noinspection PyBroadException
except BaseException:
myWords = "以梦想为驱使 创造属于自己的未来"
myWords = ["以梦想为驱使 创造属于自己的未来"]
JustifyMethod = Literal["default", "left", "center", "right", "full"]