File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,20 @@ def main():
104
104
scheme_result = input ("识别为 {} 词库, 输入 0 -- 正确, 1 -- 错误 以继续: " .format (scheme_type ))
105
105
if scheme_type == "" or scheme_result == 1 :
106
106
input_scheme_type = input ("输入 Rime userdb.txt 方案类型 (0 -- pinyin, 1 -- wubi): " )
107
- if input_scheme_type == 0 :
108
- scheme_type == "luna_pinyin"
109
- elif input_scheme_type == 1 :
107
+ if input_scheme_type == '0' :
108
+ scheme_type = "luna_pinyin"
109
+ elif input_scheme_type == '1' :
110
110
scheme_type = "wubi86"
111
111
112
112
while True :
113
113
input_format = ["0" , "1" ]
114
114
userdb_type = input ("输入 Rime userdb.txt 简繁类型 (0 -- 简体, 1 -- 繁体): " )
115
115
if userdb_type not in input_format :
116
- userdb_type = print ("格式不对 , 重新输入" )
116
+ userdb_type = print ("参数格式错误 , 重新输入" )
117
117
continue
118
118
gboard_type = input ("输入 GboardDictionary.zip 简繁类型 (0 -- 简体, 1 -- 繁体): " )
119
119
if gboard_type not in input_format :
120
- gboard_type = print ("格式不对 , 重新输入" )
120
+ gboard_type = print ("参数格式错误 , 重新输入" )
121
121
continue
122
122
else :
123
123
break
You can’t perform that action at this time.
0 commit comments