import email.Utilsdef getCleanMailAddress(strAddr):emails = email.Utils.parseaddr(strAddr.lower())return emails[1]#该片段来自于http://www.codesnippet.cn/detail/080120131438.html
来源: http://www.codesnippet.cn/detail/080120131438.html