下面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
试卷来源:202503 CCF-GESP编程能力等级认证Python一级真题