摘要: 使用Python 的re模块,re模块提供了re.sub用于替换字符串中的匹配项。 1 re.sub(pattern, repl, string, count=0) 参数说明: pattern:正则重的模式字符串 repl:被拿来替换的字符串 string:要被用于替换的原始字符串 count:模式 阅读全文
posted @ 2017-12-09 19:31 一只敲码的猫 阅读(18216) 评论(0) 推荐(0) 编辑