函数作用域,匿名函数

也可以foo()()这样运行

匿名函数lambda x:x+1

匿名函数不能写复杂逻辑判断,只能一行搞定

 

 

 

posted @ 2018-09-06 11:14  valar-dohaeris  阅读(76)  评论(0编辑  收藏  举报