__author__ = 'mocy'
#coding:UTF-8
import requests
import sys
import io
#改变python3默认输出编码
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='gb18030')
url = 'https://kyfw.12306.cn/otn/'
resp = requests.get(url,verify=True)
resp.encoding='utf-8'
print(resp.text)
5b18cc32c864b22e4d3ac027dba4cce99922a3d2
<mask token>

<mask token>
print(resp.text)

__author__ = 'mocy'
<mask token>
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='gb18030')
url = 'https://kyfw.12306.cn/otn/'
resp = requests.get(url, verify=True)
resp.encoding = 'utf-8'
print(resp.text)

__author__ = 'mocy'
import requests
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='gb18030')
url = 'https://kyfw.12306.cn/otn/'
resp = requests.get(url, verify=True)
resp.encoding = 'utf-8'
print(resp.text)

__author__ = 'mocy'
#coding:UTF-8
import requests
import sys
import io
#改变python3默认输出编码
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='gb18030')
url = 'https://kyfw.12306.cn/otn/'
resp = requests.get(url,verify=True)
resp.encoding='utf-8'
print(resp.text)