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()