sissivic 发表于 2020-7-10 07:04:05

获取tickerCode 的小程序


import tushare
import pandas as pd
import datetime

1 get tickers

tickerRawData = tushare.get_stock_basic()
tickerCode = tickerRawData.index
tickers = pd.DataFrame(data = tickerCode)

2 save tickers to csv

file = '/D: data.csv'
ticker.to_csv(file)
print('tickers saved')
页: [1]
查看完整版本: 获取tickerCode 的小程序