# -*- coding:utf-8 -*-
class Cat:
def __init__(self,new_name):
self.name = new_name
print('%s coming'%self.name)
def __del__(self):
print('%s going'%self.name)
tom = Cat('Tom')
print(tom)
del tom
print('-'*50)
此处为cmd命令行使用pyhon3.3运行两次的内存地址

此处为使用pyhon3.3idle运行两次的内存地址

此处为使用pyhon2.7idle运行两次的内存地址
