#前后都是标点符号 continue if text[idx-1].isspace() and text[idx-2].isspace() and text[idx 两个空格+字母 if text[idx-1].isspace() and text[idx-3].isupper(): continue #前后都是标点符号 continue if text[idx-1].isspace() and text[idx-2].isspace() and text[idx 两个空格+字母 if text[idx-1].isspace() and text[idx-3].isupper(): continue 两个空格+字母 if text[idx-1].isspace() and text[idx-3].isupper(): continue