从Python 3.7更改日志:
dict对象的插入顺序保存性质已被声明为Python语言规范的官方部分.
这是否意味着OrderedDict会变得多余?我能想到的唯一用途是保持与旧版本Python的向后兼容性,这些版本不保留普通字典的插入顺序.
OrderedDict
python dictionary python-3.x python-3.7 ordereddict
dictionary ×1
ordereddict ×1
python ×1
python-3.7 ×1
python-3.x ×1