下面程序的输出结果是( )。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)]
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)]
举一反三
- 下面程序的输出结果是( )。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)]
- 下面程序的输出结果是( )。L=[('b', 3), ('c', 1), ('d', 2), ('a', 5)]L.sort()print(L) A: {('a', 5), ('b', 3), ('c', 1), ('d', 2)} B: [('a', 5), ('b', 3), ('c', 1), ('d', 2)] C: [('c', 1), ('d', 2), ('b', 3), ('a', 5)] D: [('b', 3), ('c', 1), ('d', 2), ('a', 5)]
- (1)工作任劳任怨 (2)受到表彰(3)步入社会 (4)大学毕业 (5)成为劳模正确选项为( ) A: 4—1—3—5—2 B: 3—4—5—1—2 C: 4—3—l—5—2 D: 3—4—5—2—l
- 1:2:5的结果是? A: 1 3 5 B: 1 2 3 4 5 C: 2 3 4 5 D: 3 4 5
- 4-9下面代码的执行结果是( )。 a= [1,2][br][/br]a.append(3)[br][/br]a.insert(3,[4,5])[br][/br]print(a) A: [1, 2, 3, [4, 5]] B: [1, 2, 3, 4, 5] C: [1, 2, [4, 5] , 3] D: [1, 2, 3, 4, 5, 3]