# python 去除字符串的标点符号
punctuation = '!,;:?"\'、,;'
def removePunctuation(text):
    text = re.sub(r'[{}]+'.format(punctuation),' ',text)
    return text.strip()

 

相关文章: