获取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]