Python weakref 函式庫是用來建立對物件的弱引用(weak reference)。 ... 觀察到,最一開始A 的reference count 是2,當 B = A 之後變成了3,接著是6。
確定! 回上一頁