📜  请求会话 python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.295000             🧑  作者: Mango

代码示例3
s = requests.Session()

s.get('https://httpbin.org/cookies/set/sessioncookie/123456789')
r = s.get('https://httpbin.org/cookies')

print(r.text)
# '{"cookies": {"sessioncookie": "123456789"}}'