验证python中“=”对对象的引用,点型案例
python添加[],h[0]添加10,h添加10 验证python中"="对对象的引用
h = [[]] * 5
print(h)
h[0].append(10)
print(h)
h[0].append(10)
print(h)
h.append(20)
print(h)
运行结果如下:
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。