From 66c11ef54ca609fd278b13950b5c4cc6ed2eb17e Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 11 Jul 2021 13:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20=E4=B8=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=E5=AD=97=E7=9A=84?= =?UTF-8?q?=E7=83=AD=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- task.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e665438..4c8efaf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## 当前版本 -v2.3 +v2.4 ## 更新维护日志 diff --git a/task.py b/task.py index 101e448..1d5a7b4 100644 --- a/task.py +++ b/task.py @@ -132,7 +132,7 @@ def generate(group): # print(word + "\t" + flag) if flag in ["n", "nr", "nz", "PER", "f", "ns", "LOC", "s", "nt", "ORG", "nw"]: # 判断该词是否有效,不为空格 - if re.match(r"^\s+?$", word) is None: + if re.match(r"^\s+?$", word) is None and len(word) > 1: word_list.append(word) # print(word_list)