• 2022-05-31
    list=[1,2,3],list[-1]的值为()
    A: 1
    B: 3
    C: 2
    D: []
  • B

    内容

    • 0

      A=[1,2,3;4:6;7:9]; C=[A;[10,11,12]], D=C(1:3,[2 3]) E=C(2,[1 2]) E=(__________________)

    • 1

      程序段如下: x=[1,2,3] y=["a","b","c"] print(list(zip(x,y)))print函数输出的结果是( ) A: [( 'a':1), ('b:2), ('c':3)] B: [(1,2,3),("a","b","c")] C: [(1, 'a'), (2, 'b'), (3, 'c')] D: [{1:'a'}, {2:‘b'}, {3:'c'}]

    • 2

      若有:int a[][3] = {{0},{1},{2}};则a[1][2]的值是? A: 0 B: 1 C: 2 D: 3

    • 3

      如果 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]]

    • 4

      若有定义int [][]a={{1,2,3},{4,5,6},{7,8,9}},a[2][1]的值为______。 A: 8 B: 1 C: 4 D: 2