摘要: filter 过滤 filter() 函数用于过滤序列,过滤掉不符合条件的元素,返回由符合条件元素组成的新列表。 语法:filter(function, iterable) 参数:function(判断函数),iterable (可迭代对象) 返回值: Python 2.x 返回列表 Python 阅读全文
posted @ 2022-04-18 09:41 未来可期_Durant 阅读(176) 评论(0) 推荐(0) 编辑