... ... def modify(self,data): url = ‘http:xxx‘ data = data params = {"data": (None, data)} #注意这里的传参,格式是这样的 headers = { ‘Authorization‘: self.auth() } responce = requests.post(url=url,headers=headers,data=params) return responce.content.decode(‘utf-8‘) ...