Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在双向链表的上下文中,weakref 的ref, proxy, ... 有什么用处,因为 Python 能够检测循环并以垃圾方式收集它们?
ref
proxy
我想我读到 weakref 是专门为打破分配周期而创建的,但仍然有必要使用它吗?