import baostock as bsdef download(code, start_date, end_date): # 登陆系统 lg = bs.login() # 显示登陆返回信息 print('login respond error_code:'+lg.error_code) print('login respond error_msg:'+lg.error_msg)
# 获取股票数据
rs = bs.query_history_k_data_plus(code,
"date,code,open,hi