使用集合推导式生成1到10之间所有的偶数的集合,语句可以写为_______________。
(A){2*i for i in range(5)}
(B){i for i in range(0,10,2)}
(C){i for i in range(1,10,2)}
(D){i for i in range(2,11,2)}
参考答案
继续答题:下一题
(A){2*i for i in range(5)}
(B){i for i in range(0,10,2)}
(C){i for i in range(1,10,2)}
(D){i for i in range(2,11,2)}