(单选题, )下面代码的输出结果是( ) a = [] for i in range(2,10): count = 0 for x in range(2,i-1): if i % x == 0: count += 1 if count != 0: a'.'append(i) print(a)
A.[3 ,5 ,7 ,9] B.[4, 6, 8, 9] C.、[4 ,6 ,8 ,9 ,10] D.[2 ,3 ,5 ,7]正确答案B
(单选题, )下面代码的输出结果是( ) a = [] for i in range(2,10): count = 0 for x in range(2,i-1): if i % x == 0: count += 1 if count != 0: a'.'append(i) print(a)
A.[3 ,5 ,7 ,9] B.[4, 6, 8, 9] C.、[4 ,6 ,8 ,9 ,10] D.[2 ,3 ,5 ,7]正确答案B