• 2022-06-05
    下面程序的输出结果是‪‪‪‪‪‪‫‪( )。L=[('b', 3), ('c', 1), ('d', 2), ('a', 5)]L.sort()print(L)‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪
    A: {('a', 5), ('b', 3), ('c', 1), ('d', 2)}
    B: [('b', 3), ('c', 1), ('d', 2), ('a', 5)]
    C: [('c', 1), ('d', 2), ('b', 3), ('a', 5)]
    D: [('a', 5), ('b', 3), ('c', 1), ('d', 2)]