下面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
正确答案:C
试卷来源:2025全国青少年信息素养大赛Python编程挑战赛(小学组_初赛)模拟题