All,
def a(p):
return p+1
def b(func, p):
return func(p)
b(a,10) # 11
here I do not want the result "11" actually, what I want is a function object with the parameter has been binded, let's name it c.
when I use c()
or something alike, it will give me the result 11, possible?
Thanks!