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 阅读(59) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 fengZQ Powered by .NET 9.0 on Kubernetes