摘要: 学会使用正则表达式 1. 用正则表达式判定邮箱是否输入正确。 import re r='^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$' e='3947653@qq.com' if re.match(r,e): print(re.match(r,e).group(0) 阅读全文
posted @ 2018-04-10 17:27 205李华秋 阅读(114) 评论(0) 推荐(0) 编辑