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