Environmental Science :python shell 3.5.1
Just found some lambda What's interesting about expressions , Not all of them are right , Record first :
This is the simplest lambda The expression , This means that the return value is x%2, If you change it to x%2 == 0 Returns a Boolean value , Can cooperate with filter() Use .
If we want to return something that meets certain conditions , That's what's needed :