摘要: 一 : re模块的查找 findall 优先级查找 返回列表 找所有的匹配项(从大段的内容中找匹配到的项目) import re str = "qwer asdf zxcv qwerasd" ret =re.compile("\w+\s\w+") #第一种没有括号的 print(ret.findal 阅读全文
posted @ 2020-05-16 18:05 窦云鹏 阅读(130) 评论(0) 推荐(0)