摘要: 1.使用request爬取有效的URL # -*- coding: GBK -*- from urllib import request import re #爬取某个主页上的全部有效URL def crawb(): # 1. 确定好要爬取的入口链接 url = "http://www.baidu. 阅读全文
posted @ 2020-08-07 21:01 suwenyuan 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: 1.文件写入 try { FileWriter fw = new FileWriter("aaaaa", true); String[] list={"Hello,world","Are you okay?","Do you know this one?"}; for (String item : 阅读全文
posted @ 2020-08-07 10:37 suwenyuan 阅读(213) 评论(0) 推荐(0) 编辑