勿忘初心

摘要: 描述Python replace() 方法把字符串中的 old(旧字符串) 替换成 new(新字符串),如果指定第三个参数max,则替换不超过 max 次。语法replace()方法语法:str.replace(old, new[, max])参数old -- 将被替换的子字符串。new -- 新字... 阅读全文
posted @ 2015-10-15 09:03 shany1n9 阅读(980) 评论(0) 推荐(0) 编辑