Shortest way to get first item of `OrderedDict` in Python 3

后端 未结 6 1015
庸人自扰
庸人自扰 2020-12-24 05:01

What\'s the shortest way to get first item of OrderedDict in Python 3?

My best:

list(ordered_dict.items())[0]

Quite lo

6条回答
提交回复
热议问题