第41255题 判断题
执行如下Python代码,将从小到大依次输出共|N|个整数,这里|N|表示N的绝对值,如|-3| = 3。( )
N = int(input())
start_num, end_num = 1, N + 1

if N < 0:
    start_num, end_num = N, 0

    for i in range(start_num, end_num):
        print(i, end = " ")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析