请求接口后返回的json数据,如果直接写成

a.json(),返回的数据是不能直接json格式化的

如果使用json.dumps(a.json()),则直接得出格式化后的数据

ensure_ascii=False,indent=2--设置中文和样式

python使用request小心得

相关文章:

  • 2021-11-26
  • 2021-10-16
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-09-19
  • 2021-12-19
猜你喜欢
  • 2021-10-01
  • 2022-02-12
  • 2022-12-23
  • 2021-12-07
  • 2021-08-14
  • 2021-06-01
相关资源
相似解决方案