专题文章
时长:00:00更新时间:2023-05-12 10:11:14
Python官方文档给出的解释是。id(object)Return the “identity” of an object.This is an integer (or long 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.CPython implementation detail: This is the address of the object in memory。由此可以看出。
查看详情