Python内置函数id()返回数据在内存中的地址值。执行以下Python代码:
lstA = [1, 2, 3, 4, 5] m = id(lstA) lstA = lstA[:] n = id(lstA) print(m == n, lstA == lstA[:])
其输出结果为?
True False
False True
True True
False False