以下关于Python自带数据结构的运算结果中错误的是( )
(A)l = [1, 2, 3, 4]; l.reverse(); 则l[0]为4。
(B)l = [1, 2, 3, 4]; l.pop(1); 则l结果为[1, 3, 4]。
(C)l = [1, 2, 3, 4]; l.pop(); 则l.index(2) 结果为1。
(D)l = [1, 2, 3, 4]; l.insert(1, -1); 则l为 [1, -1, 3, 4]。
参考答案
继续答题:下一题


(A)l = [1, 2, 3, 4]; l.reverse(); 则l[0]为4。
(B)l = [1, 2, 3, 4]; l.pop(1); 则l结果为[1, 3, 4]。
(C)l = [1, 2, 3, 4]; l.pop(); 则l.index(2) 结果为1。
(D)l = [1, 2, 3, 4]; l.insert(1, -1); 则l为 [1, -1, 3, 4]。