摘要: urllib模块中的方法 1.urllib.urlopen(url[,data[,proxies]]) 打开一个url的方法,返回一个文件对象,然后可以进行类似文件对象的操作。本例试着打开google urlopen返回对象提供方法: - read() , readline() ,readlines 阅读全文
posted @ 2017-06-20 20:30 风水涣 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 快速上手 迫不及待了吗?本页内容为如何入门Requests提供了很好的指引。其假设你已经安装了Requests。如果还没有, 去 安装 一节看看吧。 首先,确认一下: Requests 已安装 Requests是 最新的 让我们从一些简单的示例开始吧。 发送请求 使用Requests发送网络请求非常 阅读全文
posted @ 2017-06-20 20:30 风水涣 阅读(293) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/23061570 阅读全文
posted @ 2017-06-20 10:58 风水涣 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Python 内置函数 阅读全文
posted @ 2017-06-20 10:20 风水涣 阅读(135) 评论(0) 推荐(0) 编辑