Commit 58541b27 by sy520518

Delete email.py

parent bf2b69e5
"""
书写邮箱和手机号码匹配的正则
新浪:@sina.com、@sina.cn
网易:@163.com、@126.com、@163.net、@188.com
Yeah邮箱:@yeah.net
谷歌:@gmail.com、@googlemail.com
Microsoft:@hotmail.com
雅虎:@yahoo.com
新浪:@sina.com
搜狐:@sohu.com
Tom:@tom.com
21CN邮箱:@21cn.com
腾讯:@qq.com
263邮箱:@263.net
"""
import re
email = input("请输入邮箱进行验证:")
reg = "(^[a-zA-Z0-9\-]{5,16})@(((sina|163|188|qq|sohu|gmail|googlemail|hotmail|21cn|tom|yahoo)\.com)|((163|yeah|263)\.net)|(sina\.cn))"
result = re.findall(reg,email)
if result:
print("邮箱验证成功")
else:
print("邮箱验证失败")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment