Python 匿名函数

匿名函数 函数能够像普通变量同样进行赋值函数 def hello():    print('hello world') ​ print(hello.__name__) ​ a = hello ​ print(a.__name__) ​ hello() a() 函数能够做为参数传递,扩展函数的功能post def add(a, b):    return a+b ​ def calc(a, b, f
相关文章
相关标签/搜索