python对字典进行排序,排序之后还是字典,怎么搞

python对字典进行排序,排序之后还是字典,怎么搞

collections.OrderedDict

 

import collections

dicDockers = collections.OrderedDict(dicDocker)
posted @ 2022-06-27 16:22  bH1pJ  阅读(21)  评论(0编辑  收藏  举报