1. 首页
  2. 数据库
  3. 其它
  4. python requests post多层字典的方法

python requests post多层字典的方法

上传者: 2020-12-25 11:02:53上传 PDF文件 34.22KB 热度 44次
pyhton requests模块post方法传参为多层字典时,转换错误, 如,表单传参 { “a”:1, “b”:{ “A”:2, “B”:3 } } post请求后看到form data是: a:1 b:A b:B 查看官方文档: More complicated POST requests Typically, you want to send some form-encoded data — much like an HTML form. To do this, simply pass a dictionary to the data argument. Your dictio
用户评论