📜  在 python 代码示例中删除对象

📅  最后修改于: 2022-03-11 14:46:48.556000             🧑  作者: Mango

代码示例1
>>> class Test:
...     def __del__(self):
...         print "deleted"
... 
>>> test = Test()
>>> del test
deleted