首页题库练习题目详情
面向对象程序设计单选题中等

在Python中,若要从列表中移除所有偶数的元素,可以使用以下哪种方式?

Alist(filter(lambda x: x % 2 != 0, list))
Blist(filter(lambda x: x % 2 == 0, list))
Clist(map(lambda x: x % 2 != 0, list))
Dlist(reduce(lambda x: x % 2 != 0, list))