Python:提取网页中的电子邮箱
摘要:import requests, re #regex = r"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)"#这个正则表达式过滤掉了qq邮箱regex = r"([a-zA-Z0-9_.+-]+@[a-pr-zA-PRZ0-9-]+\.[a-zA-
阅读全文
posted @
2018-01-29 13:41
adolfmc
阅读(1872)
推荐(0) 编辑
python新建txt文件,并逐行写入数据
摘要:#coding=utf-8txtName = "codingWord.txt"f=file(txtName, "a+")for i in range(1,100): if i % 2 == 0: new_context = "C++" + '\n' f.write(new_context) else
阅读全文
posted @
2018-01-29 13:40
adolfmc
阅读(17940)
推荐(0) 编辑