使用Python 的re模块,re模块提供了re.sub用于替换字符串中的匹配项。 1 re.sub(pattern, repl, string, count=0) 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交