随笔 - 669  文章 - 0  评论 - 56  阅读 - 320万
01 2018 档案
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) 推荐(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) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示