sort x by values. 9. a_values = dict(sorted(a.items(),key=lambda x:x[1],reverse = False)) # ascending order. 10. # output: {'d': 0, 'b': 3, 'a': 4, 'c': 5}.
確定! 回上一頁