def hello_decorator(func): #함수를 파라미터로 받음
def decorated():
print('a')
func() #함수를 중심으로 앞과 뒤에 실행할 코드를 넣는다
print('c')
return decorated
@hello_decorator #데코레이터를 호출한다
def hello():
print('b')
hello()
#output : a b c (hello_decorator(hello()) - 중첩된 함수가 출력됨)