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) --------------------- 作者:开心果汁 来源:CSDN 原文:https://blog.csdn.net/u013421629/article/details/77583037 版权声明:本文为博主原创文章,转载请附上博文链接! |
|