python股票 价格 实时监控
参考: https://www.cnblogs.com/hbhjkzhangmin/p/10869504.html 安装tushare pip install tushare 参考: http://tushare.org/ python基础篇—监控股票 使用tushare库 获取股票信息 1.安装tushare库 win+R输入cmd进入控制台 输入pip install tushare 2.获取股票信息 import tushare , time #导入tushare库 data = tushare . get_realtime_quotes ( '000581' ) #获取股票代码为 000581 的股票信息 print ( data ) log 为: D : \PYTHON_ENV\stock\Scripts\python . exe C : / Users / xxxx / PycharmProjects / stock / test . py name open pre_close price . . . a5_p date time code 0 威孚高科 20.070 20.000 20.320 . . . 20.380 2020 - 01 - 16 11 : 07 : 24 000581 [ 1 rows x 33 columns ] Process