pyton3 字典排序

1. 字典排序

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

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

原文地址:https://www.cnblogs.com/FengZiQ/p/13784191.html