摘要: requests-post请求 基本用法 #! /usr/bin/python3 # -*- congfig:utf-8 -*- import requests def test_post(url): data = {'kw':"admin"} #请求体(字典) headers = {"user-a 阅读全文
posted @ 2020-08-05 23:37 静心&得意 阅读(273) 评论(0) 推荐(0) 编辑
摘要: requests-get请求 基本用法 #! /usr/bin/python3 # -*- congfig:utf-8 -*- import requests def test_get(url): r = requests.get(url) print(r.text) if __name__ == 阅读全文
posted @ 2020-08-05 23:36 静心&得意 阅读(211) 评论(0) 推荐(0) 编辑
摘要: requests入门 安装 pip install requests 发送请求的方法 import requests requests.post("http://httpbin.org/post") requests.put("http://httpbin.org/put") requests.de 阅读全文
posted @ 2020-08-05 23:34 静心&得意 阅读(156) 评论(0) 推荐(0) 编辑