python 变量的引用

>>> a = 6
>>> tup = (a,5)
>>> id(a)
137396080
>>> tup
(6, 5)
>>> id(tup[0])
137396080
>>> a = 7
>>> id(a)
137396096

posted @ 2013-06-13 03:33  youJumpILook  阅读(177)  评论(0编辑  收藏  举报