2019年5月17日

删除或替换字符串中特定字符

摘要: 1 replace( ) replace()函数只有三个参数,第三个参数是最大替代次数 特别注意replace()函数作用完后,并没有改变原字符串 参考:https://www.runoob.com/python/att-string-replace.html 2 strip( ) strip() 阅读全文

posted @ 2019-05-17 12:40 吃我一枪 阅读(1025) 评论(0) 推荐(0) 编辑

导航