现有行情数据如下:stock_price = {'000001': 15.34,

题库2022-08-02  44

问题 现有行情数据如下:stock_price = {'000001': 15.34, '000002': 26.800000000000001, '000004': 21.030000000000001, '000005': 3.3700000000000001, '000006': 5.3200000000000003}增加行情数据:'000007': 8.0700000000000003获取该行情数据的所有股票代码获取该行情数据的所有收盘价

选项

答案

解析 stock_price = {'000001': 15.34, '000002': 26.800000000000001, '000004': 21.030000000000001, '000005': 3.3700000000000001, '000006': 5.3200000000000003}stock_price['000007'] = 8.0700000000000003print(stock_price.keys())print(stock_price.values())
转载请注明原文地址:https://tihaiku.com/congyezige/2425253.html

最新回复(0)