2018年4月10日
摘要: #判断邮箱格式 import re mail = '^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$' myMail = '45612563@qq.com' if re.match(mail, myMail): print(re.match(mail, myMail).group(0)) else: print('error') #用正则... 阅读全文
posted @ 2018-04-10 17:41 Runka 阅读(207) 评论(0) 推荐(0)