摘要: test="abcdeffedcba" v=test.lstrip("bcabc")#寻找的是最多匹配然后移除指定字符串 print("1.lstrip用法3为寻找最多匹配然后移除指定字符","\n",v) test1="傻逼abc" test2="谁是123" test3="你们都是大傻逼abcefgh321" a=str.maketrans(test1,test2) #这个用str 没搞懂... 阅读全文
posted @ 2018-11-16 21:41 小圣庄 阅读(165) 评论(0) 推荐(0) 编辑