python中查看变量的内存地址

it2025-01-13  3

可以使用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.) >>>

 

转载于:https://www.cnblogs.com/tuzkee/archive/2013/02/06/2906152.html

最新回复(0)