方案1.
import ssl
import urllib2
context = ssl._create_unverified_context()
print urllib2.urlopen("https://www.12306.cn/mormhweb/", context=context).read()
方案2:
import ssl
import urllib2
ssl._create_default_https_context = ssl._create_unverified_context
print urllib2.urlopen("https://www.12306.cn/mormhweb/").read()
ps:https://blog.csdn.net/sylmoon/article/details/78777770
https://blog.csdn.net/xiaopangxia/article/details/49908889