测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A18571. 下列说法有关如下 Python 代码,错误 的是( )。i = 0 tot = 0 while 0 <= i < 10: tot += i i += 1 print(tot)

单选题 容易

题目描述

下列说法有关如下 Python 代码,错误 的是(    )。

i = 0
tot = 0
while 0 <= i < 10:
    tot += i
    i += 1
print(tot)

选项(单选)

上一题 下一题