手机
当前位置:查字典教程网 >脚本专栏 >python >Python获取邮件地址的方法
Python获取邮件地址的方法
摘要:本文实例讲述了Python获取邮件地址的方法。分享给大家供大家参考。具体实现方法如下:importemail.UtilsdefgetClea...

本文实例讲述了Python获取邮件地址的方法。分享给大家供大家参考。具体实现方法如下:

import email.Utils def getCleanMailAddress(strAddr): emails = email.Utils.parseaddr(strAddr.lower()) return emails[1]

希望本文所述对大家的Python程序设计有所帮助。

【Python获取邮件地址的方法】相关文章:

python操作MySQL数据库的方法分享

Python常见文件操作的函数示例代码

vc6编写python扩展的方法分享

pydev使用wxpython找不到路径的解决方法

Python群发邮件实例代码

Python中os和shutil模块实用方法集锦

python实现排序算法

python赋值操作方法分享

Python中的魔法方法深入理解

Python调用C/C++动态链接库的方法详解

精品推荐
分类导航