除此之外,Python 还提供了对应的函数copy.copy() 函数,适用于任何数据类型。其用法如下 import copy list1 = [1, 2, 3] list2 = copy.copy(list1) print(list2) ...
確定! 回上一頁