import json url = 'https://api.github.com/some/endpoint' payload = {'some': 'data'} headers = {'content-type': 'application/json'} r = requests.post(url, data=json.dumps(payload), headers=headers) --------------------- 作者:開(kāi)心果汁 來(lái)源:CSDN 原文:https://blog.csdn.net/u013421629/article/details/77583037 版權(quán)聲明:本文為博主原創(chuàng)文章,轉(zhuǎn)載請(qǐng)附上博文鏈接! |
|
來(lái)自: 夢(mèng)寒與鎖夢(mèng) > 《python》