向已有列表a的末尾添加一个元素,正确的是()。

向已有列表a的末尾添加一个元素,正确的是()。

A.append(1:1)

B.a.insert(len(a),(2,))

C.a.insert(0,(2))

D.a.insert(1,(2))

正确答案:AB

猜你喜欢