f = lambda x: x * x
f(2)# 4
#等同于
def f(x):
return x * x
python3基础之lambda匿名函数
猜你喜欢
转载自blog.csdn.net/weixin_43273113/article/details/103925144
今日推荐
周排行