首页 > 编程语言 > 详细

python从任意文件读取邮件地址输出的代码

时间:2019-02-08 10:14:47      阅读:192      评论:0      收藏:0      [点我收藏+]

如下的资料是关于python从任意文件读取邮件地址输出的代码。
# This script takes whatever you throw at stdin and outputs email addresses.
# eg. python email_extractor.py < PythonFAQ.html
# This script can be used for whatever you want, EXCEPT SPAMMING !
import sys,re
print ‘n‘.join(re.findall(‘([w.-]+@[w.-]+)‘,sys.stdin.read()))




 

python从任意文件读取邮件地址输出的代码

原文:https://www.cnblogs.com/yumiban/p/10355879.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!