初识pythonRequests库

requests库 虽然Python的标准库中urlib模块已经包含了平常我们使用的大多数功能,但是它的API使用起来让人感觉不太好,而Requests宣传是"HTTP for Humans",说明使用更简洁方便。 发送GET请求: 1.最简单的发送get请求就是通过requests . get来调用: response=requests. get(“http://www.baidu.com/”)
相关文章
相关标签/搜索