(单选题, )下面代码的输出结果是( )
A = [9,6,4,5]
N = len(a)
For i in range(int(len(a) / 2)):
a[i],a[N-i-1] = a[N-i-1],a[i]
Print(a)
A.[9,6,5,4] B.[5,4,6,9] C.[5,6,9,4] D.[9,4,6,5]正确答案B
(单选题, )下面代码的输出结果是( )
A = [9,6,4,5]
N = len(a)
For i in range(int(len(a) / 2)):
a[i],a[N-i-1] = a[N-i-1],a[i]
Print(a)
A.[9,6,5,4] B.[5,4,6,9] C.[5,6,9,4] D.[9,4,6,5]正确答案B