python数组的复制问题

1、a=[2,3,4,5]

      b=a

只是将b指向a,对b的操作会影响a

2、如果需要对b操作,不影响a

    b=a[:]

原文地址:https://www.cnblogs.com/peterinblog/p/7340305.html