老是忘记,做个记录import requestsparams = {"ip": ip,"port": port,}data = json.dumps(params)res = requests.get(url=url, data=data)result = json.loads(res.content)post也一样, res = requests.post(url, headers=self.headers, data=params)