Python Function Decorator


```type# 단순 Decorator의 경우decorated_func = decorator_name(decorated_func)# 인자가 있는 Decorator의 경우decorated_func = decorator_name(arg1)(decorated_func)```




```type# Using @property decoratorclass Celsius:    def __init__(self, temperature=0):        self.temperature = temperature    def to_fahrenheit(self):        return (self.temperature * 1.8) + 32    @property    def temperature(self):        print("Getting value...")        return self._temperature    @temperature.setter    def temperature(self, value):        print("Setting value...")        if value < -273.15:            raise ValueError("Temperature below -273 is not possible")        self._temperature = value```


> [Untitled](https://www.programiz.com/python-programming/property)




