正文python中发送post请求时,报错“Unrecognized token 'xxxx': was expecting ('true', 'false' or 'null')”IP云V管理员/2022-08-17/8 阅读 08/17提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 解决办法:如请求参数为 data={“user”=“aaa”,“pwd”=“123456”,sign=“00000000000000”}需要将参数data先做处理,调用函数datas=datajson.dumps(datas,separators=(',',':'));然后在发送post请求request.post(url,datas,.....)