python发送post请求时,如何让data内加上括号

通过抓包软件观察的

我发送的请求:

img

正常浏览器的请求:

img

不知道这种情况怎么解决

你的 Content-Type 指定为 application/json
参考下:https://blog.csdn.net/wuzhong8809/article/details/91491146

data = {'xxx': 'xxxx'}
requests.post(url,data=data)