摘要:
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
静心&得意
阅读(306)
评论(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
静心&得意
阅读(240)
评论(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
静心&得意
阅读(166)
评论(0)
推荐(0)
浙公网安备 33010602011771号