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

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二级真题
题库首页 › GESP等级认证(Python) › 题目 13320

正确答案:C
试卷来源:202503 CCF-GESP编程能力等级认证Python二级真题