摘要:
元组中的不可更改性: 1 t = (1,22,3,[1,2,3]) 2 print(id(t[-1])) 3 4 t[-1][0] =10 #元组的不可更改,指的是元组的引用 ,和其中元素的引用是不可更改的。 5 print(t) 6 print(id(t[-1])) Python中字典的存储(以h 阅读全文
posted @ 2019-10-21 21:05
Zcb0812
阅读(174)
评论(0)
推荐(0)