摘要: 2017-07-03 23:26:08 1、.replace(self, old, new, count=-1) replace()函数将旧字符串替换为新字符串,最后一个参数count为可选项,表示替换最多count次(小于count)。 注意这种替换返回替换后的字符串,源字符串是不改变的。 2、. 阅读全文
posted @ 2017-07-18 18:42 hyserendipity 阅读(409) 评论(0) 推荐(0) 编辑