request接口调用的三种方法(1)

第一种方法:
requests.post()
requests.get()
image
python操作接口:要素导入request库
image
(1)url
image
(2)请求参数
image
(3)请求头
image
(4)请求方法:
image
image
(5)填写对应的方法,调用
image
案例:post请求
image
案例:get请求
(1)get请求中params
image

image
image
(2)get中请求参数在url上
image

posted @ 2026-05-25 14:47  刘sir金牌讲师  阅读(12)  评论(0)    收藏  举报