zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

Python 函数 用法 了解 ID 即可
2023-09-11 14:17:15 时间
# -*- 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