下载对应的股票代码的历史数据并整合出来
try:
import os
import tushare as ts
except Exception:
os.system('pip install tushare')
df = ts.get_hist_data('000001')
df.to_csv('000001.csv')
try:
import os
import tushare as ts
except Exception:
os.system('pip install tushare')
df = ts.get_hist_data('000001')
df.to_csv('000001.csv')