下列程序的运行结果是( )。var arr=[1,2,3,4,5];arr[0]=0;arr[5]=0;document.write(arr);
A: 0,2,3,4,5,0
B: 1,2,3,4,5
C: 0,1,2,3,4,5,0
D: 0,1,2,3,4,5
A: 0,2,3,4,5,0
B: 1,2,3,4,5
C: 0,1,2,3,4,5,0
D: 0,1,2,3,4,5
举一反三
- 请阅读下面一段程序:arr = np.arange(6).reshape(1, 2, 3)print(arr.transpose(2, 0, 1))执行上述程序后,最终输出的结果为( )。 A: [[[2 5]][[0 3]][[1 4]]] B: [[[1 4]] [[0 3]] [[2 5]]] C: [[[0 3]][[1 4]][[2 5]]] D: [[[0] [3]][[1] [4]][[2] [5]]]
- 创建数组arr=[ [0 1 2 3] [4 5 6 7] [8 9 10 11]],则arr*3=___________。
- 【单选题】如图示代码,下面哪个是正确的输出结果 A. 0 1 2 3 4 5 B. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 C. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 D. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5
- 【单选题】Which of the following matrices does not have the same determinant of matrix B: [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -1, 0, -9,-5] A. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 0; -1, 0, -9, -5] B. [1, 3, 0, 2; -2, -5, 7, 4; 1, 0, 9, 5; -1, 0, -9, -5] C. [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -3, -5, -2, -1] D. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 1; -1, 0, -9, -5]
- 若int[][]arr={{1,2,3}},则arr[0][1]的结果为 A: 0 B: 1 C: 2 D: 3