摘要: match方法: match尝试从字符串的起始位置开始匹配 如果起始位置没有匹配成功, 返回None; 如果起始位置匹配成功, 返回一个对象, 通过group方法获取匹配的内容; import re # re:regular express 正则表达式 aObj = re.match(r'we', 阅读全文
posted @ 2020-08-06 20:08 Achilles_Heel 阅读(273) 评论(0) 推荐(0) 编辑