导入包requests,from http import cookiejar
import requests,json
from http import cookiejar
res=requests.post(url,json=body)#发起post请求
result=json.loads(res.text)#查看结果
cook = requests.utils.dict_from_cookiejar(res.cookies)#获取cookies
print(type(cook),cook)
网友评论