# author : yang.cao
# date : 2020.02.13
class Goods:
def __init__(self):
self.original_price = 100
self.seal = 0.8
@property
def price(self):
return self.original_price * self.seal
@price.setter
def price(self, price):
self.original_price = price
@price.deleter
def price(self):
del self.original_price
computer= Goods()
print(computer.price)
computer.price = 200
print(computer.price)
# del computer.price
print(mouth.price)