# coding=utf-8
# 不使用Session的时候
import requests

requests.get('http://httpbin.org/cookies/set/sessioncookie/123456789')
r = requests.get("http://httpbin.org/cookies")
print(r.text)

b8e721607ab1a78a9ec259387ae2655b986811ac
<mask token>

<mask token>
requests.get('http://httpbin.org/cookies/set/sessioncookie/123456789')
<mask token>
print(r.text)

<mask token>
requests.get('http://httpbin.org/cookies/set/sessioncookie/123456789')
r = requests.get('http://httpbin.org/cookies')
print(r.text)

import requests
requests.get('http://httpbin.org/cookies/set/sessioncookie/123456789')
r = requests.get('http://httpbin.org/cookies')
print(r.text)

# coding=utf-8
# 不使用Session的时候
import requests

requests.get('http://httpbin.org/cookies/set/sessioncookie/123456789')
r = requests.get("http://httpbin.org/cookies")
print(r.text)
