摘要: 匿名函数 函数可以像普通变量一样进行赋值 def hello(): print('hello world')​print(hello.__name__)​a = hello​print(a.__name__)​hello()a() 函数可以作为参数传递,扩展函数的功能 def add(a, b): 阅读全文
posted @ 2018-03-07 16:47 pythonsonline 阅读(200) 评论(0) 推荐(0) 编辑