第25615题 单选题
以下Python代码实现指定数字图形的输出,相关说法错误的是哪一项?
请输入层数:10
0
12
345
6789
01234
567890
1234567
89012345
678901234
5678901234
line_number = int(input("请输入层数:"))
now_number = 0
for row in range(1, line_number + 1):
    for i in range(row):
        print(now_number, end="")
        now_number += 1
        if now_number == 10:
            now_number = 0
    print()
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析