class study
class Person: def __init__(self,name,age): self.name = name self.age = age def __del__(self): print("person is reclaimed.") def wakeup(self,at): print("{0} wake up at {1} am".format(self.name,at)) mars = Person("xuefeifei", 30) print(mars.name) print(mars.age) mars.wakeup(7)