我是 Python 的初学者。我想知道该id()函数是否可用于加密程序,还是仅用于为内存中的该值提供元素 id ?
我只是想知道我如何使用这个功能以及它适合使用的情况。这是一个例子:
Input : id(1025) # 1025 is a value stored in memory
Output : 140365829447504
or
Input : id("geek") # A string literal is stored in memory
Output : 139793848214784