摘要: #字符串方法全量查找 s = 'hello world' s.find('ll') #返回索引值 s.replace('ll','xx') s.split('w') #以w为分割符 返回['hello ','orld'] #正则表达式 import re #完整匹配 re.findall('匹配的字 阅读全文
posted @ 2020-12-07 17:02 密语笔记 阅读(103) 评论(0) 推荐(0)