append 的意思是向列表尾部追加元素.extend的意思是向列表尾部追回列表.写个例子:arr=[1,2,3] arr.append(4) arr.extend([5,6]). python 的强大特性之 ...
確定! 回上一頁