import re m = re.search(r'[1-9]\d{5}', 'jgjh 1000815k55551555') # raw string, 原生字符串 if m: print(m) print(m.group(0)) print(m.group())
posted on 2020-03-15 21:03 HolaWorld 阅读(79) 评论(0) 编辑 收藏 举报