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)