摘要: match&search&findall的引申 打印出匹配的内容 匹配空白/非空白 s(小写):匹配空白 S(大写):匹配非空白 >>> "".join(re.findall(r"\S+","ab cd\t ef\nhi")) 'abcdefhi' w:匹配字符(大小写字母、_、数字) 限制贪婪的处 阅读全文
posted @ 2019-04-01 00:18 翻滚的小强 阅读(221) 评论(0) 推荐(0) 编辑