From 8082e124314f24969992237e90cda3c34e2d4398 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sun, 12 Feb 2023 03:42:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llc_cli.py | 17 +++++------------ utils/io.py | 4 ++-- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/llc_cli.py b/llc_cli.py index 799e61c..a5f51fb 100644 --- a/llc_cli.py +++ b/llc_cli.py @@ -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)}") diff --git a/utils/io.py b/utils/io.py index a89690e..fcc4302 100644 --- a/utils/io.py +++ b/utils/io.py @@ -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"]