摘要: 调用 __del__() 方法,该对象所占用的内存空间不一定就会被释放 第一种情况: class CLanguage: def __init__(self): print("调用 __init__() 方法构造对象") def __del__(self): print("调用__del__() 销毁 阅读全文
posted @ 2020-11-26 16:47 孤独的羊 阅读(224) 评论(0) 推荐(0) 编辑