复制列表的最佳方法是什么?我知道以下方法,哪一个更好?或者还有另一种方式吗?
lst = ['one', 2, 3] lst1 = list(lst) lst2 = lst[:] import copy lst3 = copy.copy(lst)
python
python ×1