第一遍正则匹配不查找'.'

This commit is contained in:
KakaruHayate 2024-01-30 22:56:00 +08:00 committed by GitHub
parent 3e8c071e9a
commit d6629a8c6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,7 +200,7 @@ dict_language = {
def splite_en_inf(sentence, language):
pattern = re.compile(r'[a-zA-Z. ]+')
pattern = re.compile(r'[a-zA-Z ]+')
textlist = []
langlist = []
pos = 0