在for i in range(6)语句中,i的取值是?
A. [1,2,3,4,5,6]
B. [1,2,3,4,5]
C. [0,1,2,3,4]
D. [0,1,2,3,4,5]
以下程序的输出结果是?y=0for i in range(0,10,2):y+=iprint(‘y=’,y)
A. 30
B. 20
C. 10
D. 0
列表L=[4,6,8,10,12,5,7,9],列表解析式[x for x in L if x%2==0]返回的结果是?
A. [4,8,12,7]
B. [6,10,5,9]
C. [4,6,8,10,12]
D. [5,7,9]