Python获取邮件地址的方法
作者:Sephiroth 时间:2022-05-29 10:53:05
本文实例讲述了Python获取邮件地址的方法。分享给大家供大家参考。具体实现方法如下:
import email.Utils
def getCleanMailAddress(strAddr):
emails = email.Utils.parseaddr(strAddr.lower())
return emails[1]
希望本文所述对大家的Python程序设计有所帮助。
标签:Python,邮件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python 安装setuptools和pip工具操作方法(必看)
2023-11-06 11:46:07
![](https://img.aspxhome.com/file/2023/1/65091_0s.png)
Webpack4 使用Babel处理ES6语法的方法示例
2023-08-30 08:12:37
![](https://img.aspxhome.com/file/2023/8/56198_0s.png)
Python正则表达式介绍
2023-05-29 01:32:58
![](https://img.aspxhome.com/file/2023/1/87571_0s.png)
python里面单双下划线的区别详解
2023-03-22 12:39:22
![](https://img.aspxhome.com/file/2023/4/70644_0s.png)
详解Python如何巧妙实现数学阶乘n!
2023-07-06 10:22:56
![](https://img.aspxhome.com/file/2023/6/59466_0s.png)
python实现的简单窗口倒计时界面实例
2023-06-18 23:02:55
Python爬虫设置Cookie解决网站拦截并爬取蚂蚁短租的问题
2022-06-09 20:07:37
![](https://img.aspxhome.com/file/2023/9/109659_0s.jpg)
windows下python 3.6.4安装配置图文教程
2023-08-10 02:57:37
![](https://img.aspxhome.com/file/2023/7/77827_0s.jpg)
python使用socket向客户端发送数据的方法
2023-08-13 00:16:51
如何从Python字符串中删除最后一个分号或者逗号
2023-12-22 07:29:53
![](https://img.aspxhome.com/file/2023/0/79470_0s.png)
用python打印1~20的整数实例讲解
2023-12-18 21:45:06
![](https://img.aspxhome.com/file/2023/0/70910_0s.png)
微软建议的ASP性能优化28条守则(1)
2008-02-22 16:54:00
![](https://img.aspxhome.com/file/UploadPic/up/2008032516342961.gif)
利用Pycharm断点调试Python程序的方法
2023-07-05 03:47:08
![](https://img.aspxhome.com/file/2023/2/97242_0s.jpg)
关于python写入文件自动换行的问题
2021-09-01 00:03:13
Pandas 同元素多列去重的实例
2023-02-09 21:03:32
python中如何实现径向基核函数
2023-11-28 02:48:45
![](https://img.aspxhome.com/file/2023/1/88911_0s.png)
asp中利用xmlhttp抓取网页内容的代码
2023-07-06 04:18:12
巧用JDBC实现对MySQL的“增删改查”
2008-12-31 15:12:00
JS实现用户管理系统
2023-08-29 04:51:20
![](https://img.aspxhome.com/file/2023/0/56260_0s.jpg)
Python基础之高级变量类型实例详解
2021-11-09 11:07:40
![](https://img.aspxhome.com/file/2023/0/112010_0s.png)