End*_*ium 15 python python-requests
我正在使用的一个API指定我需要一个特殊的内容类型字符串.我不知道如何在python-requests库中设置它
Vik*_*jha 34
import requests
headers = {'Content-type': 'content_type_value'}
r = requests.get(url, headers=headers)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
29137 次 |
| 最近记录: |