h = [[]] * 5
print(h)
h[0].append(10)
h.append(20)
运行结果如下:
验证python中“=”对对象的引用,点型案例
原文:http://blog.51cto.com/13241097/2153959