摘要:
requests-post请求 基本用法 #! /usr/bin/python3 # -*- congfig:utf-8 -*- import requests def test_post(url): data = {'kw':"admin"} #请求体(字典) headers = {"user-a 阅读全文
摘要:
requests-get请求 基本用法 #! /usr/bin/python3 # -*- congfig:utf-8 -*- import requests def test_get(url): r = requests.get(url) print(r.text) if __name__ == 阅读全文
摘要:
requests入门 安装 pip install requests 发送请求的方法 import requests requests.post("http://httpbin.org/post") requests.put("http://httpbin.org/put") requests.de 阅读全文