← 查看本卷题目GESP Python 2级2025年12月单选题 第10题 · 2 分与下面Python输出效果不一致的代码是( )。 1for i in range(10):2 print(i)填写答案A1i = 02while i < 10:3 print(i)4 i += 1B1i = 02while i < 10:3 i += 14 print(i)C1i = 02while True:3 print(i)4 i += 15 if i >= 10:6 breakD1i = 02while True:3 if i >= 10:4 break5 print(i)6 i += 1提交答案详细解析这题不会 ← 上一题 第 22 / 87 题← → 键切题 下一题 →
与下面Python输出效果不一致的代码是( )。 1for i in range(10):2 print(i)填写答案A1i = 02while i < 10:3 print(i)4 i += 1B1i = 02while i < 10:3 i += 14 print(i)C1i = 02while True:3 print(i)4 i += 15 if i >= 10:6 breakD1i = 02while True:3 if i >= 10:4 break5 print(i)6 i += 1提交答案详细解析这题不会