一个python类A:
a = A()
array.append(a)
Run Code Online (Sandbox Code Playgroud)
...某些操作会触发方法b()
in a.b():
array.remove(self);
# will this make the self be freed? as the only reference has been removed from array.
# access the a's data...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
113 次 |
| 最近记录: |