若有语句room = np.array([[[0,1,2,3],[4,5,6,7], [8,9,10,11]],[[12,13,14,15],[16,17,18,19],[20,21,22,23]]]),则room[0][1][0]的值为_______
举一反三
- a=array([[0,1,2,3], [4,5,6,7], [8,9,10,11], [12,13,14,15]]) b=array([[16,17,18,19], [20,21,22,23], [24,25,26,27], [28,29,30,31]]) 通过语句np.concatenate((a,b),axis=1)可以产生 array([[0,1,2,3,16,17,18,19], [4,5,6,7,20,21,22,23], [8,9,10,11,24,25,26,27], [12,13,14,15,28,29,30,31]])
- ls=[ [1,2,3,4],['a','b','c','d'],['列','表'] ][br][/br] 请写出结果: ls[0] (1) ls[0][0] (2) ls[1][0:2] (3)
- 数组x定义:String x[ ][ ]=new int[3][2]; x[0 ][0 ]=”abc”, x[0 ][1]=”12345”;<br/>则 x.length 的值为______ ,x[0][1].leng()的值为______ 。
- 创建数组arr=[ [0 1 2 3] [4 5 6 7] [8 9 10 11]],则arr*3=___________。
- 以下代码的显示结果是什么? data=[[[1,2],[3,4]],[[5,6],[7,8]]] print(data[1][0][0]) A: 1 B: 2 C: 4 D: 5 E: 6