A: [4,5,6]
B: [4,3,6]
C: [4,5,3]
D: A,B,C都不正确
举一反三
- 执行下面的操作后,list_two的值是() list_one = [4,5,6] list_two = list_one list_one[2] = 3 A: [4,5,6] B: [4,3,6] C: [4,5,3] D: A,B,C都不正确
- 执行下面操作后,list_two的值是()list_one = [4, 5, 6]list_two = list_onelist_one[2] = 3 A: [4,5,3] B: [4,3,6] C: [4,5,6] D: 以上都不对
- 执行以下操作后,list_two的值是: list_one=[4,5,6] list_two=list_one list_one[2]=3
- 执行以下操作后,list_two的值是:list_one=[4,5,6]list_two=list_onelist_one[2]=3 A: [4,5,6] B: [4,3,6] C: [4,5,3] D: 都不对
- 执行以下操作后,list_two的值是: list_one=[4,5,6] list_two=list_one list_one[2]=3 print(list_two)
内容
- 0
执行dict([1,2],[3,4],[5,6])语句,创建的一个对象是( )。 A: {1:2, 3:4, 5:6} B: {(1, 2), (3, 4), (5, 6)} C: {1, 2, 3, 4, 5, 6} D: {(1,2,3):(4,5,6)}
- 1
如果 frame = [[1,2,3],[4,5,6],[7,8,9]],则rgb = frame[::-1]的值是: A: [[7, 8, 9]] B: [[1,2,3],[4,5,6],[7,8,9]] C: [[7, 8, 9], [4, 5, 6], [1, 2, 3]] D: [[1, 2, 3], [4, 5, 6]]
- 2
下面代码的输出结果是 ls1 = [1,2,3] ls2 = [4,5,6] print(ls1+ls2) A: [4,5,6] B: [1, 2, 3, 4, 5, 6] C: [1,2,3] D: [5,7,9]
- 3
以下程序的输出结果是: frame = [[1,2,3],[4,5,6],[7,8,9]] rgb = frame[::-1] print(rgb) A: [[7, 8, 9]] B: [[1,2,3],[4,5,6],[7,8,9]] C: [[7, 8, 9], [4, 5, 6], [1, 2, 3]] D: [[1, 2, 3], [4, 5, 6]]
- 4
以下程序的输出结果是:( )。frame = [[1,2,3],[4,5,6],[7,8,9]]rgb = frame[::-1]print(rgb) A: [[1,2,3],[4,5,6],[7,8,9]] B: [[1, 2, 3], [4, 5, 6]] C: [[7, 8, 9], [4, 5, 6], [1, 2, 3]] D: [[7, 8, 9]]