d={‘k1‘:"3", ‘k2‘:44, ‘k3‘:3}for k in d: print k
sorted([k for k in d],reverse=False)
词典型 遍历键 顺序
原文:https://www.cnblogs.com/yuanjiangw/p/10872344.html