0826デフォルトの名無しさん (ワッチョイ 459f-dUYE [106.167.156.66])
2017/11/19(日) 15:16:02.38ID:RXjeglfp0class Cls:
def __init__(self):
self.a = np.array([1])
def Func(self,b):
return self.a +b
def Func(f,c):
c[0] = 3
return f(c)
o = Cls()
x = 2
f = lambda c: o.Func(x)
print (Func(f,o.a))