2017年11月30日

python 正则表达式 re.findall &re.finditer

摘要: 语法: findall 搜索string,以列表形式返回全部能匹配的子串 finditer 搜索string,返回一个顺序访问每一个匹配结果(Match对象)的迭代器 Case: Output quote:http://cuiqingcai.com/977.html 阅读全文

posted @ 2017-11-30 16:18 sub2020 阅读(557) 评论(0) 推荐(0) 编辑

python 正则表达式 re.split

摘要: 内置函数split与re库中的split,有很多相似处 Output: 阅读全文

posted @ 2017-11-30 15:27 sub2020 阅读(1077) 评论(0) 推荐(0) 编辑

导航