python-requests 其他要求方式

示例

该requests模块具有用于大多数HTTP方法的顶级功能:

r = requests.put('https://example.com/', data=put_body)
r = requests.delete('https://example.com/')
r = requests.head('https://example.com/')
r = requests.options('https://example.com/')
r = requests.patch('https://example.com/', data=patch_update)