求大佬解释下
print filter(lambda s: len(s.strip())>0 and s, ['test', None, '', 'str', ' ', 'END']) 谁能解释下这样为啥就不行了。。。。换了个顺序。。。print filter(lambda s: len(s.strip())>0 and s, ['test', None, '', 'str', ' ', 'END']) AttributeError: 'NoneType' object has no attribute 'strip'