Home > Q&A > body text
# When a = 1, due to python's cache pool, it can be parsed, but b is a brand new object, why is the reference count 2?
巴扎黑2017-06-12 09:24:25
help(sys.getrefcount)
曾经蜡笔没有小新2017-06-12 09:24:25
Let’s talk briefly first, because sys.getrefcount(b) is also considered a reference