Python--day18--re模块

findall方法:

search方法:

match方法:

split方法:(分割)

sub方法:

subn方法:

complie的作用:将正则表达式编译成为一个正则表达式对象

 

finditer方法:返回一个存放匹配结果的迭代器

注意:

1,findall的优先级查询:

2,split的优先级查询:

 

 

posted @ 2018-10-21 19:51  莱茵河的雨季  阅读(87)  评论(0)    收藏  举报