小明在做数学题,题目要求找出来从1数到100中不能被7整除的数字(即跳过7的倍数不显示)。以下哪个Python循环可以帮他完成这个任务?( )
i = 1 while i <= 100: if i % 7 != 0: print(i) i += 1
i = 1 while i >= 100: if i % 7 != 0: print(i) i += 1
i = 1 while i <= 100: if i % 7 == 0: break print(i) i += 1
for i in range(1, 101): if i % 7 == 0: print(i) else: continue