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.)

>>> 

 

你可能感兴趣的:(python)