Python发送Post请求报错:UNRECOGNIZED TOKEN 'XXX': WAS EXPECTING ('TRUE', 'FALSE' OR 'NULL')
Python发送Post请求报错:UNRECOGNIZED TOKEN 'XXX': WAS EXPECTING ('TRUE', 'FALSE' OR 'NULL')解决办法:因为直接读取dict类型的数据会发生报错所以要将dict转化成str格式,设置requests.post中的data格式: data=json.dumps(data)requests.post(ur...