摘要: 1. replace() 函数 作用: 替换字符串 语法: replace('需要替换的子串', '新的子串', '替换的次数(可不传)') # 当替换次数不传时,默认全部替换 实例一: mystr = 'you and me and he' new_str1 = mystr.replace('an 阅读全文
posted @ 2020-11-26 08:11 蓝小六 阅读(1589) 评论(0) 推荐(0) 编辑