![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
每天总结
Leus'blog
梦想.
展开
-
#19.5.13
爬虫 url pycharm激活 汉化 (CSDN教程) urllib2 写出简单的爬源代码的py脚本。 import urllib2 response=urllib2.urlopen(‘http://www.gdppla.edu.cn/default.html’) html=response.read() print html https://blog.csdn.net/sinat_2...原创 2019-05-14 13:26:04 · 87 阅读 · 0 评论 -
#19.5.15 python 列表 元组 字典 集合
Python中的数据结构 列表list: 列表中的每个元素都可变的。 意味着可以对每个元素进行修改和删除。 列表是有序的,每个元素的位置是确定的,可以用索引去访问每个元素。 列表中的元素可以是Python中的任何对象。 格式: {’ ‘:’ '} 正反序排列: ...转载 2019-05-16 22:08:53 · 263 阅读 · 0 评论 -
#19.5.14
贴吧的爬虫,逻辑 #--coding:utf-8-- import urllib2 def write_file(file_name, text): print ‘正在存储文件’ + file_name f = open(file_name, ‘w+’) f.write(text) f.close() def load_page(url): req = urllib2.Request(url)...原创 2019-05-15 22:21:23 · 181 阅读 · 0 评论