以下代码不满足需求
>>> import re
>>> rex = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
>>> email = "lzjun567@gmail.com"
>>> re.match(rex, email) # 匹配
<re.Match object; span=(0, 18), match='lzjun567@gmail.com'>
>>>
>>> re.match(rex, "xxxx") # 不匹配
以下代码不满足需求
>>> import re
>>> rex = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
>>> email = "lzjun567@gmail.com"
>>> re.match(rex, email) # 匹配
<re.Match object; span=(0, 18), match='lzjun567@gmail.com'>
>>>
>>> re.match(rex, "xxxx") # 不匹配