python之函数用法id(),了解即可

# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#python之函数用法id(),了解即可
#http://www.cnblogs.com/hongfei/p/3858256.html



#id()
#说明:查找对象的内存地址
'''
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.)
'''


#案例
name='xiaodeng'
print id(name)#32256224

 

posted @ 2015-11-07 18:12  Xiao|Deng  阅读(756)  评论(0编辑  收藏  举报