📜  如何复制列表python代码示例

📅  最后修改于: 2022-03-11 14:46:38.945000             🧑  作者: Mango

代码示例2
a=[1,2,3,4]
b=a[:] 
''' now b has all elements of  a'''