[Python] python从任意文件读取邮件地址输出 →→→→→进入此内容的聊天室

来自 , 2019-03-27, 写在 Python, 查看 139 次.
URL http://www.code666.cn/view/c39e1a03
  1. # Hello, this script is written in Python - http://www.python.org
  2. # Script written by Sebastien SAUVAGE <sebsauvage at sebsauvage dot net> - http://sebsauvage.net
  3. # This script takes whatever you throw at stdin and outputs email addresses.
  4. # eg. python email_extractor.py < PythonFAQ.html
  5. # This script can be used for whatever you want, EXCEPT SPAMMING !
  6. import sys,re
  7. print '\n'.join(re.findall('([\w\.\-]+@[\w\.\-]+)',sys.stdin.read()))
  8. #//python/5174

回复 "python从任意文件读取邮件地址输出"

这儿你可以回复上面这条便签

captcha