#含有参数的post请求 r = requests.post(url,data=data,params=params)
import requests
url = "https://httpbin.org/post"
params = {"show_env":1}
data = {"a":"巧吧软件测试","form":"form_data"}
r = requests.post(url,params=params,data=data)
print(r.headers)
print(r.text)
print(r.json()["form"])
转载于:https://www.cnblogs.com/smile2018tao/p/10171677.html