request拆解
get参数提 params={}
其他data=https://www.it610.com/article/{}
get /post /delete /put
(1)get:
/ci.ytesting.com/api/3school/school_classes?vcode=
+
requests.get(url,params={})
=
import requests
payload={'Content-Type':'application/json','vcode':******','action':'list_classes_by_schoolgrade'}
z=requests.get('http://ci.ytesting.com/api/3school/school_classes',params=payload)
print(z.json())
(2)post
requests.post(url,data=https://www.it610.com/article/{})
item={'vcode':'*****','action':'add','grade':4,'name':'banji','studentlimit':40}
html=requests.post('http://ci.ytesting.com/api/3school/school_classes',data=https://www.it610.com/article/item)
【request拆解】print(html.json())
推荐阅读
- 使用Promise对微信小程序wx.request请求方法进行封装
- JavaScript|vue 基于axios封装request接口请求——request.js文件
- vue.js|vue中使用axios封装成request使用
- 用钱来爱你
- iOS14|iOS14 Widget小组件开发(Widget Extension)
- 翻译思路拆解|翻译思路拆解 | 历史的道路,不会是坦平的
- 我为什么参加拆解稿和听书稿的训练营
- 女人该怎么样选择对象(你Get到了吗?)
- 【本周作业1】
- 90天30个TED演讲|90天30个TED演讲 - Day 25: How to get your ideas to spread