直接上代码

>>> import re
>>> email = '"=?gb2312?B?wfsD98D7?=" <abc@qq.com>'
# 匹配‘<’开头‘>’结尾的字符串,也就是需要的邮件地址
>>> r1 = r'<(.+?)>'
>>> email1 = re.search(r1,email)
>>> print(email1)
<_sre.SRE_Match object; span=(24, 36), match='<abc@qq.com>'>
>>> print(email1.group())
<abc@qq.com>
# group(0)等同于group(),不填写参数默认返回group(0),也就是匹配的整个字符串
>>> print(email1.group(0))
<abc@qq.com>
>>> print(email1.group(1))
abc@qq.com