replace()方法语法: str.replace(old, new[, max])参数old -- 将被替换的子字符串。new -- 新字符串,用于替换old子字符串。max -- 可选字符串, 替换不超过 max 次 来源:https://www.cnblogs.com/qmjy/p/11361147.html 标签 replace 字符串函数 replace函数