摘要: s='hello world' # print(s.find('llo')) #返回的是索引 # ret=s.replace('ll','xx') # print(ret) # print(s.split('w')) import re # ret=re.findall('w\w{2}',s) # print(ret) #元字符 # .通配符 ret=re.findall('w..l','hell 阅读全文
posted @ 2019-09-26 13:58 测试的世界很精彩 阅读(432) 评论(0) 推荐(0) 编辑