匿名 函数

#匿名 函数
def getTest(x):
    return x*x

print(getTest(2))

print(list(map(lambda x:x+x,[1,2,3,4])))

f = lambda x : x*x

print(f(5))
原文地址:https://www.cnblogs.com/lvchengda/p/12619283.html