Return an instance of a dict subclass, supporting the usual dict
methods. An OrderedDict is a dict that remembers the order that
keys were first inserted. If a new entry overwrites an existing entry,
the original insertion position is left unchanged. Deleting an entry
and reinserting it will move it to the end.
如果时间间隔是可靠的常量,那么可以使用一个列表,当然也可以使用numpy数组。在
否则,您可以在collections模块(std lib)中查看有序字典
https://docs.python.org/2/library/collections.html(Python 2)
班级集合.OrderedDict([项目])
如果使用的是pandas,则存在{a2}。在
相关问题 更多 >
编程相关推荐