第25502题
Python条件判断:找出不能实现指定需求的循环if条件选项

下面Python代码执行后,将输出能被2整除且除以7余数为2的数。下列选项不能实现的是( )。

for i in range(100):
if ____:
print(i)
A

i % 2 == 0 and i % 7 == 2

B

not(i % 2) and i % 7 == 2

C

not(i % 2) and not(i % 7)

D

i % 2 != 1 and i % 7 == 2