第13784题 单选题
从1到100中筛选不能被7整除的数字,以下哪个Python循环可以实现该任务?
A
i = 1
while i <= 100:
    if i % 7 != 0:
        print(i)
    i += 1
B
i = 1
while i >= 100:
    if i % 7 != 0:
        print(i)
    i += 1
C
i = 1
while i <= 100:
    if i % 7 == 0:
        break
    print(i)
    i += 1
D
for i in range(1, 101):
    if i % 7 == 0:
        print(i)
    else:
        continue
程序运行统计
暂无判题统计