class X: pass; print(id(X()) == id(X())) # prints True?

前端 未结 0 1167
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 05:18

Al is said in the title, the following code:

class X: pass
print(id(X()) == id(X()))

prints True If I run

id(X())
相关标签:
回答
  • 消灭零回复
提交回复
热议问题