requests接口自动化3-url里带参数的get请求:params

url里带参数的get请求:用params传参

#2、带参数的get请求,把参数写成字典格式,用params传参
para2={"type":"math"}
response2=requests.get("http://www.luckyframe.cn/captcha/captchaImage?",params=para2,verify=False)
print("响应text:"+response2.text)
print(response2.content)
print(response2.raw)

 运行结果:

路漫漫其修远兮,吾将上下而求索
原文地址:https://www.cnblogs.com/pingchangxinketang/p/13194196.html