摘要: 分割方法总结 1. str.split( ) 2. re.split() 搜索和匹配方法总结 1. str.startswith() | str.endswith() 2. fnmatch() | fnmatchcase() 3. str.find() 4. re.match(r'') 5. re.findall(r'') 6. re.finditer(r'') 7. r' $'——>正则表达式以$结尾 8. re.compile(r'')——>先编译正则表达式 9. ?修饰符 搜索和替换方法总结 1. str.replace() 2. re.sub() | re.(flags=re.IGNORECASE) 3. re.compile() 4. re.subn() 阅读全文
posted @ 2017-07-31 20:48 Jelly_lyj 阅读(531) 评论(0) 推荐(0) 编辑