Fork me on GitHub
摘要: Python3的字符串替换,这里总结了三个函数, 和`translate() re.sub()` replace() python 中的 方法把字符串中的 old(旧字符串) 替换成 new(新字符串),如果指定第三个参数max,则替换不超过 max 次 HeQQo,worQd. ByeBye! H 阅读全文
posted @ 2018-05-15 00:45 Byron_NG 阅读(44226) 评论(0) 推荐(1) 编辑