安装tushare :
1.windows+R-cmd-conda install tushare
2.windows+R-cmd-pip install tushare
一、获取当前电影信息
import tushare as ts #导入tushare模块
df = ts.realtime_boxoffice()
二、检测股价的线性趋势
1.编写代码获取中国平安股票的收盘价和对应的日期数据
可参见http://tushare.org/index.html
1).获取中国平安6月1日至今天的股票数据
语法:ts.get_h_data(‘股票代号’,start=’’,end=’’)
ts.get_h_data('601318',start='2018-06-01',end='2018-09-27'