python发送无参数get请求
如下代码,不带参数的请求,直接去掉参数部分即可
import requests url = 'http://192.168.6.25:8768/headl/selectTypeList' r = requests.get(url) js = r.json() print(js) print(r.text)
如下代码,不带参数的请求,直接去掉参数部分即可
import requests url = 'http://192.168.6.25:8768/headl/selectTypeList' r = requests.get(url) js = r.json() print(js) print(r.text)