import re
def checkEmail( email):
regx = re.compile(r'^[_a-z0-9-]+(\.[a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$')
rst = regx.match(email)
if rst is None:
return False
else:
return True
Python邮箱地址检查
最新推荐文章于 2024-04-22 16:07:30 发布