python3 lambda函数

A=lambda x:x+1


def A(x):
return x+1


冒号左边→想要传递的参数
冒号右边→想要得到的数(可能带表达式)

原文地址:https://www.cnblogs.com/sgwjj/p/9450920.html