摘要: re模块中flags: 示例: re模块中sub用法: ​ 用于替换字符串中的匹配项 pattern 正则中的模式串 repl 替换的字符串,也可以是函数 string 要被查找替换的原始字符串 count 模式匹配后替换的最大次数,默认是0 re.compile: ​ compile函数用于编译正 阅读全文
posted @ 2019-08-16 22:28 醉醺醺的 阅读(4394) 评论(0) 推荐(0)