标签:dump data url pytho pre header class http request
具体代码如下:
import requests import json data={"ids": ["00007190","00007191"]} url="http://XXXXX" data_json = json.dumps(data) headers = {‘Content-type‘: ‘application/json‘} response = requests.post(url, data=data_json, headers=headers) print(response.text)
标签:dump data url pytho pre header class http request
原文地址:https://www.cnblogs.com/shaosks/p/9591883.html