第25616题 单选
与给定Python代码输出效果不一致的是?

与下面Python代码输出效果不一致的是( )。

for i in range(10): 
    print(i)
A
i = 0
while i < 10:
    print(i)
    i += 1
B
i = 0
while i < 10:
    i += 1
    print(i)
C
i = 0
while True:
    print(i)
    i += 1
    if i >= 10:
        break
D
i = 0
while True:
    if i >= 10:
        break
    print(i)
    i += 1
程序运行统计
暂无判题统计