Python如何将字符串中的符号都换为空格?

如题所述

第1个回答  2017-05-11
import re
import string

text=re.sub(re.escape(string.punctuation)," ",text)本回答被提问者和网友采纳
相似回答