PR[1]=[20,-50,15,10,180,-90],PR[2]=PR[1],PR[2,3]=PR[1,3]+50,则PR[2]的值为()
A: [70,0,65,10,180,-90]
B: [70,0,65,60,230,-40]
C: [70,-50,65,10,180,-90]
D: [20,-50,65,10,180,-90]
A: [70,0,65,10,180,-90]
B: [70,0,65,60,230,-40]
C: [70,-50,65,10,180,-90]
D: [20,-50,65,10,180,-90]
举一反三
- PR[1]=[20,-50,15,10,180,-90],PR[2]=PR[1],PR[2,3]=PR[1,3]+50,则 PR[2]的值为( )
- 中国大学MOOC: 如果有以下定义:int[][] Arr = new int[3][];Arr[0] = new int[] { 10, 20, 30 }; Arr[1] = new int[] { 40, 50, 60, 70 }; Arr[2] = new int[] { 80, 90 };,则对数组Arr说法不正确的是()
- 中国大学MOOC: 已知字典 dic={ 小明:[90,80], 小红:[65,88], 小琳:[90,100] },则执行表达式 dic[小红][1]+=10 后,表达式 dic[小红][1] 的值为______________
- 已知a=[[1,2,3],[2,2],[3,2,1]],则a[1][1]+a[-1][-1]结果是 A: 1 B: 2 C: 3 D: 4
- 写出下面程序的输出结果:d1 = {} d1[2] = 10 d1['2'] = 20 d2 = {} d2[2] = d1 d2['2'] = d2 print d2['2']['2']['2']['2'][2][2]