import urllib2 改为 import urllib.request as urllib2 下一节介绍使用urllib2包,通过get接口调用获取数据 https://www.jianshu.com/p/96ef2add1e41