GroupDict ========= .. currentmodule:: deepfos.lib.utils .. autoclass:: GroupDict :exclude-members: 传入唯一键名集合group,在新增字典的键名已存在在group中时,raise KeyError >>> shared_key_group = Group() >>> a = GroupDict(shared_key_group) >>> b = GroupDict(shared_key_group) >>> a['a'] = 1 >>> a,b ({'a': 1}, {}) >>> b['a'] = 2 Traceback (most recent call last): ... KeyError: 'Key a has been existed in key_group. Cannot be added to current dict.' >>> a['a'] = 'a' >>> a {'a': 'a'} See Also: :class:`get_groupdicts` .. autosummary::