第25655题 单选题
下列关于记录输入数最大最小值的Python代码的说法,错误的是?

以下Python代码用于记录多个输入数中的最大数和最小数(输入-999则输入结束):

now_num = int(input())
min_num = max_num = now_num
while now_num != -999:
    if max_num < now_num:
       max_num = now_num
    if min_num > now_num:
       min_num = now_num
    now_num = int(input())
print(min_num, max_num)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析