Сергей Богданов Asked:2020-05-21 21:59:04 +0800 CST2020-05-21 21:59:04 +0800 CST 2020-05-21 21:59:04 +0800 CST 用 Python 发送 Post 请求 772 一切顺利。这是请求: r = requests.post(url + "create_user/", json=[{"name":"Lilit","login":"........","password":"......"}]) 但我必须输入键:值。在 Postman 中是这样的 我如何将此键:值添加到查询中? python 1 个回答 Voted Best Answer Сергей Богданов 2020-05-22T13:40:16+08:002020-05-22T13:40:16+08:00 也许有人会帮忙) headers = {'X-TMP-TOKEN': 'sometoken'} r = requests.post(url + "create_user/", headers=headers, json={"name":.......
也许有人会帮忙)