摘要: import re print("*"*20) #re.match 在字符串开头进行匹配 pattern = "(\d+)(@)" string = "123456@qq.com" result = re.match(pattern,string) print(result.group())#匹配整 阅读全文
posted @ 2023-02-26 20:51 朵朵奇fa 阅读(19) 评论(0) 推荐(0) 编辑