Discuss / Python / 有点疑问

有点疑问

Topic source

slysian

#1 Created at ... [Delete] [Delete and Lock User]

请问lambda函数可以声明几个变量?教程最后的例子怎么直接返回结果

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

没有限制只能一个:

lambda x, y: x + y

搜索忍者

#3 Created at ... [Delete] [Delete and Lock User]

f=build(2,4) f() 或 build(2,4)()


  • 1

Reply