摘要: 学会使用正则表达式 1. 用正则表达式判定邮箱是否输入正确。 r='^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$' e='wzl201506110246@123.com' if re.match(r,e): print(re.match(r,e).group(0)) 阅读全文
posted @ 2018-04-10 17:49 246王芷玲 阅读(149) 评论(0) 推荐(0) 编辑