php中的function(Python3.6内置函数(31)——id())PHP函数 / PHP内置函数列表...

wufei123 发布于 2024-02-16 阅读(80)

本文目录英文文档id()小结英文文档Return the “identity” of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value.

id()1、返回对象的唯一标识符,用整数表示在程序生命周期内,这个标识符常量是唯一的>>> id(1) 1396814912 >>> a = 1 >>> id(a) 1396814912 >>> id(1.0) 33561240 >>> a = python >>> id(a) 49270488 小结。

希望通过上面的操作能帮助大家如果你有什么好的意见,建议,或者有不同的看法,我都希望你留言和我们进行交流、讨论欢迎关注微信公众号,谢谢大家支持:AiryData转载请注明:数据之美 Python3.6内置函数(31)——id()。

喜欢 ( 0) or 分享 (0)

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

河南中青旅行社综合资讯 奇遇综合资讯 盛世蓟州综合资讯 综合资讯 游戏百科综合资讯 新闻60148