摘要: 一、扫描整个字符串并返回:re.search+group import re line = "Cats are smarter than dogs" matchObj = re.search(r'(.*) are (.*?) .*', line, re.M | re.I) # re.I表示忽略大小写 阅读全文
posted @ 2021-09-15 16:23 踩泥靴 阅读(74) 评论(0) 推荐(0) 编辑