post请求基本不会把参数放在url里,一般都放到body里面。 方式一:post请求,有请求参数 import requests url = 'https://m.xxxxxx.com/xxxx/user/smsLogin' new_json = { "appCode":"1011", "mobi Read More
posted @ 2021-06-08 14:44 干脆面666 Views(4148) Comments(0) Diggs(1) Edit
方式一:get请求,无参数 1 import requests 2 3 url = 'https://www.baidu.com/' 4 ret = requests.get(url) 5 print(ret) 6 print(ret.text) 7 # 如果返回的数据不是json格式,打印json Read More
posted @ 2021-06-08 11:09 干脆面666 Views(8913) Comments(0) Diggs(0) Edit
/* 看板娘 */ /* 点击鼠标烟花效果 */