对列表做如下操作, list = ['Google', 'Runoob', 1997, 2000] list[2] = 1999 list.append('JD') print('更新后的列表是:', list)
(A)['Google', 'Runoob', 1997, 2000]
(B)['Google', 'Runoob', 1999, 2000, 'JD']
(C)['Google', 'Runoob', 1999, 2000]
(D)['Google', 'Runoob', 1997, 2000, 'JD']
参考答案
继续答题:下一题