取除一篇中文文章里面全部的标点符号 from zhon.hanzi import punctuation #去掉中文标点符号 for i in punctuation: content = content.replace(i,'')