lambda
lambda x : x**2,lambda冒号面的表达式不能是函数吗? 例如任务那里,我先定义了is_not_empty()函数。lambda冒号后面的s and len(s.strip())>0,可以改成is_not_empty(s)吗?
lambda x : x**2,lambda冒号面的表达式不能是函数吗? 例如任务那里,我先定义了is_not_empty()函数。lambda冒号后面的s and len(s.strip())>0,可以改成is_not_empty(s)吗?
2017-08-10
举报