tushare

pip install tushare  #python 3.6

import tushare as ts

,得到上证300指数和个股数据历史价格数据

sh=ts.get_hist_data('sh')

**stock=ts.get_hist_data('*******')#输入股票代码即可

猜你喜欢

转载自www.cnblogs.com/thechain/p/9134149.html