python中查看变量的内存地址

可以使用id

>>> print id.__doc__
id(object) -> integer

Return the identity of an object.  This is guaranteed to be unique among
simultaneously existing objects.  (Hint: it's the object's memory address.)
>>> 

 

posted @ 2013-02-06 14:50  鸪斑兔  阅读(11903)  评论(0编辑  收藏  举报