📅  最后修改于: 2022-03-11 14:47:00.699000             🧑  作者: Mango
pattern = re.compile(r'\b(' + r'|'.join(stopwords.words('english')) + r')\b\s*')
text = pattern.sub('', "eswar and co and the smartext kid")