转自:http://www.jb51.net/article/65475.htm
本文实例讲述了python中查看变量内存地址的方法。分享给大家供大家参考。具体实现方法如下:
这里可以使用id
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.)