tushare 的token设置

1.安装:pip install tushare --upgrade

2.注册:https://tushare.pro,如图,复制粘贴即可

import pandas as pd
import tushare as ts
#a9f08e2376247c3b4c6********************7189153d946c2
token= "#a9f08e2376247c3b4c6********************7189153d946c2"
ts.set_token(token)
pro=ts.pro_api()

猜你喜欢

转载自blog.csdn.net/OYY_90/article/details/90598083
今日推荐