Get请求方式:
url="https://editor.XXXXX"
params={"key1":"value1","key2":"value2"}
response=requests.get(url=url,params=params)
POST请求方式:
①如果请求参数格式是application/json;charset=UTF-8
url="https://editor.XXXXX"
data={"title":"","state":""}
cookies={}
response=requests.post(url=url,json=data,cookies=cookies())
②如果请求参数格式是application/x-www-form-urlencoded;charset=UTF-8
url="https://editor.XXXXX"
data= {"supplier": supplier}
cookies={}
response=requests.post(url=url,data=data,cookies=cookies())