import akshare as ak # 获取沪深 A 股股票列表 stock_list = ak.stock_info_a_code_name() print(stock_list)