python如何傳遞body參數

  Python給接口傳body參數的話可能需要對將body參數轉換成json形式 import json   headers = {'content-type': "application/json"} response = requests.post(url, data = json.dumps(body), headers = headers) headers獲取如圖:
相關文章
相關標籤/搜索