摘要: 模拟发送GET请求 前置条件:导入requests库 一、发送不带参数的get请求 代码如下: 以百度首页为例 import requests # 发送get请求 response = requests.get(url="http://www.baidu.com") print(response.c 阅读全文
posted @ 2021-11-29 17:37 奔跑在路上you 阅读(333) 评论(0) 推荐(0)
摘要: Requests模块简介 在python的标准库中,虽然提供了urllib,utllib2,httplib,但是做接口测试,requests使用更加方便快捷,正如官方说的,“让HTTP服务人类”。 Requests是用python语言基于urllib编写的,采用的是Apache2 Licensed开 阅读全文
posted @ 2021-11-29 16:03 奔跑在路上you 阅读(1196) 评论(0) 推荐(0)