摘要: #判断邮箱电话格式 a = "1207384251@qq.com" b = '020-12345678' mail = re.search('\d{6,12}@[a-zA-Z0-9]+.[a-zA-Z0-9]+', a).group(0) tele_num = re.search('\d{3,4}-\d{6,8}', b).group(0) print(mail+'\n'+tele_num) ... 阅读全文
posted @ 2018-04-10 16:53 博威袁他就是袁威博 阅读(116) 评论(0) 推荐(0) 编辑