电源票房及股票数据拉取
import tushare as ts
#电影票房
df = ts.day_boxoffice()
print(df)
#股票数据
data=ts.get_hist_data('600848')
print(data)
e = ts.get_hist_data('601318',start='2019-11-26',end='2019-11-26')
print(e)
print(e.high)
print(e.low)
电源票房及股票数据拉取
import tushare as ts
#电影票房
df = ts.day_boxoffice()
print(df)
#股票数据
data=ts.get_hist_data('600848')
print(data)
e = ts.get_hist_data('601318',start='2019-11-26',end='2019-11-26')
print(e)
print(e.high)
print(e.low)