#有参数get请求 r = requests.get(url,params=params)

#有参数get请求  r = requests.get(url,params=params)
import requests
url = "https://httpbin.org/get"

params = {"show_env":1}

r = requests.get(url,params=params)
print(r.status_code)
print(r.json())
posted @ 2018-12-24 23:31  测试小白学习之路  阅读(4322)  评论(0编辑  收藏  举报