requests 常用的几个方法

requests库的七个主要方法

方法                                            解释 

requests.request()                       构造一个请求,支持以下各种方法

requests.get()                              获取Html的主要方法

requests.head()                           获取html头部信息的主要方法

requests.post()                            向html提交post请求方法

requests.put()                              向html提交put请求方法

requests.patch                             向html 提交局部修改的请求

requests.delete()                          向html 提交删除的请求

猜你喜欢

转载自blog.csdn.net/hai_peng_yu/article/details/80572738