From 93798733e78aa4e1960801752cb4998498a766f2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-LK1P9MP\\typ" <1500698928@qq.com> Date: Fri, 20 Oct 2017 14:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=88=A4=E6=96=AD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search_key_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search_key_file.py b/search_key_file.py index c014290..9aa7785 100644 --- a/search_key_file.py +++ b/search_key_file.py @@ -32,7 +32,7 @@ Num += 1 print (line[:index] + ('\033[31;1m%s\033[0m' % mubiao) + line[ index + len(mubiao):]) print ('一共找到了\033[31;1m%s\033[0m;' % Num) - if mubiao == 'exit': + elif mubiao == 'exit': sys.exit('欢迎使用搜索系统!') else: print ('搜索2个关键词')