pyton3 字典排序

1. 字典排序

d={'a':1,'c':3,'b':2}

d1={k:d[k] for k in sorted(d)}

posted on 2020-10-09 09:46  fengZQ  阅读(57)  评论(0编辑  收藏  举报

导航