企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# requests 官网: https://requests.readthedocs.io/zh_CN/latest/ ```python import requests # cookie 到字典 def cookie_to_dic(cookie): cookie_dic = {} for i in cookie.split('; '): cookie_dic[i.split('=')[0]] = i.split('=')[1] return cookie_dic # 请求 res = requests.get(url, cookies=cookie_to_dic(cookie)); ```