第17752题 判断题
判断该Python递归代码能否正确打印出指定的递减星号图案

要实现的递减星号图案如下:

*****
****
***
**
*

对应编写的Python代码如下:

def n(x):
    print('*' * x)
    if x == 1:
        return
    n(x-1)

n(5)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析