stock 本项目中需要识别python版本的地方 Python2 Python3 unicode(anything) str(anything) from urllib2 import Request from urllib.request import Request 参考网站: 使用2to3将代码移植到Python 3 本项目参考网站 TUSHARE 强烈推荐TUSHARE,该网站助力智能投资与创新型投资,在该网站可免费提供各类金融数据和区块链数据 数据源 新浪财经 腾讯财经