摘要: 正则表达式: re.match的用法 示例: # -*- coding: utf-8 -*- import re # re.match(正则表达式,待提取的字符串) result = re.match(r"[Hh]ello", "hello world") # 用group方法提取匹配到的数据 a 阅读全文
posted @ 2020-12-24 16:55 陶子_Destiny 阅读(21) 评论(0) 推荐(0)