From c6b16968ba37e4d714b0e056db7a299b6b04ee69 Mon Sep 17 00:00:00 2001 From: cgcel Date: Sun, 8 Oct 2023 17:01:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E4=B8=8D=E5=87=BA=E8=BE=93=E5=85=A5=E6=96=B9=E6=A1=88=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 06ffdfd..07c9146 100644 --- a/main.py +++ b/main.py @@ -104,20 +104,20 @@ def main(): scheme_result = input("识别为 {} 词库, 输入 0 -- 正确, 1 -- 错误 以继续: ".format(scheme_type)) if scheme_type == "" or scheme_result == 1: input_scheme_type = input("输入 Rime userdb.txt 方案类型 (0 -- pinyin, 1 -- wubi): ") - if input_scheme_type == 0: - scheme_type == "luna_pinyin" - elif input_scheme_type == 1: + if input_scheme_type == '0': + scheme_type = "luna_pinyin" + elif input_scheme_type == '1': scheme_type = "wubi86" while True: input_format = ["0", "1"] userdb_type = input("输入 Rime userdb.txt 简繁类型 (0 -- 简体, 1 -- 繁体): ") if userdb_type not in input_format: - userdb_type = print("格式不对, 重新输入") + userdb_type = print("参数格式错误, 重新输入") continue gboard_type = input("输入 GboardDictionary.zip 简繁类型 (0 -- 简体, 1 -- 繁体): ") if gboard_type not in input_format: - gboard_type = print("格式不对, 重新输入") + gboard_type = print("参数格式错误, 重新输入") continue else: break