标签:ext pytho code mpi strip() c中 odi rip 替换
# coding: utf-8
import re
text = "aa[bb,aa#cWc中a国"
FILTER_PUNTS = re.compile("[^\u4E00-\u9FA5|^a-z|^A-Z]")
text = FILTER_PUNTS.sub(" ", text.strip())
print(text)
标签:ext pytho code mpi strip() c中 odi rip 替换
原文地址:https://www.cnblogs.com/zhouyang209117/p/11172957.html