""" 代码L1数据管理 """ class L1DataManager: __current_price_dict = {} @classmethod def set_l1_current_price(cls, code, price): cls.__current_price_dict[code] = price # 获取L1现价 @classmethod def get_l1_current_price(cls, code): return cls.__current_price_dict.get(code)