第27327题 单选题
以下Python代码运行后的输出结果是什么?
def is_even(n):
    return n % 2 == 

nums = [1, 2, 3, 4, 5, 6]
result = filter(is_even, nums)
print(list(result))
A

[1, 3, 5]

B

[2, 4, 6]

C

[1, 2, 3, 4, 5, 6]

D

程序运行报错

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析