Python - Sorting dictionary keys in Python 3.X ... D = {'b': 2, 'c': 3, 'a': 1} # Better yet, sort the dict directly for k in sorted(D): print(k, ...
確定! 回上一頁