strip(),replace()和re.sub()用法

strip(),replace()和re.sub()用法 语法 str.replace(old, new[, max]) 参数 old -- 将被替换的子字符串。 new -- 新字符串,用于替换old子字符串。 max -- 可选字符串, 替换不超过 max 次   re.sub(pattern, repl, string, count=0, flags=0) pattern:表示正则表达式中的
相关文章
相关标签/搜索