Python 列表/數組方法
拷貝 fruits 列表:
fruits = ['apple', 'banana', 'cherry', 'orange'] x = fruits.copy()
運行實例
copy() 方法返回指定列表的副本。
list.copy()
無參數。