摘要: 描述 Python replace() 方法用于把字符串中的 old(旧字符串) 替换成 new(新字符串),如果指定第三个参数max,则替换不超过 max 次。 语法: str.replace(old, new[, max]) 参数 old -- 将被替换的子字符串。 new -- 新子字符串,用 阅读全文
posted @ 2020-07-13 21:32 鱼儿爱天空 阅读(2685) 评论(0) 推荐(0) 编辑