pyton_decorator_learning
# author: Roy.G
'''
x=lambda x,y:x**3+y**3
a=x(3,3)
print(a)
'''
# def a(a):
# a=2*a
# a=b(a) # this b(a) just is a str ,not a function ,so it has no problem
# return a
# def b(b):
# b=b*2
# return b
# x=a(10) # in this function b() turn a functin in the memery
# print(x)
# variate is function
def f_1(a,b):
c=a+b
return c
def f_2(a,b,f_1): # this is a decorator function of f_1
d=a+f_1(a,b)
return d
x=f_2(1,2,f_1)
print(x)