本文介绍了匿名函数 - 如何的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 您好: 我想定义一个非常大的匿名函数,一个带有 的几个语句。我知道如何定义匿名 函数,但我不知道如何在 中定义一系列语句。这可以用Python完成吗?如果是这样,怎么样? 谢谢, MayerHello:I would like to define a very large annonymous function, one withseveral statements in sequence. I know how to define annonymousfunctions, but I don''t know how to define a sequence of statements intheir body. Can this be done in Python? If so, how?Thanks,Mayer推荐答案 不,它不可能。为什么你更喜欢你的功能是匿名的? 彼得No, it can''t. Why do you prefer your function to be anonymous?Peter 不,它不可能。为什么你更喜欢你的函数是匿名的?No, it can''t. Why do you prefer your function to be anonymous? 取决于你所说的匿名是什么意思;-)Depends on what you mean by "anonymous" ;-) 声明1 声明2 声明等 (无,''不是匿名的;-)'' 问候, Bengt Richterstatement 1statement 2statement etc(None, ''not that anonymous ;-)'')Regards,Bengt Richter 这篇关于匿名函数 - 如何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-12 11:11