max([1, "2", 34])的结果是?
A: 1
B: "2"
C: 34
D: 报错
A: 1
B: "2"
C: 34
D: 报错
举一反三
- 现有列表a = ["1", 2, "34", "5"],则sorted(a)的输出是什么? A: ["1", 2, "34", "5"] B: ["1", 2, "5", "34"] C: ['34', '5', 2, '1'] D: 报错
- 现有列表a = ["1", 2, "34", "5"],则sorted(a)的输出是什么?
- 下列语句执行后,D的值为()。A=[1:3,7;4:6,-56;34,23,56,-45;4,2,4,5];D=max([A(3),A(6),A(8),A(11)]) A: 34 B: 5 C: 2 D: 56
- max(2,3,4,5,12,34,56)的执行结果为() A: 2 B: 34 C: 56 D: 3
- python3解释器执行下面的示例代码后,list1的结果是( ):>;>;>; list1 = [1,2,[3,4]]>;>;>; list2 = copy.deepcopy(list1)>;>;>; list2[2] = 'a'>;>;>; list1 A: [1, 2, ['a', 4]] B: [1, 2, 'a'] C: [1, 2, [3, 4]] D: 报错