Python 使用filter过滤列表 i = [1,None,"kll"]test = filter(lambda x: True if x else False, i )for k in test: print(k)这种方式比较简洁优雅 python 2024-05-01 43 点赞 0 评论 65 浏览