要实现的递减星号图案如下:
***** **** *** ** *
对应编写的Python代码如下:
def n(x): print('*' * x) if x == 1: return n(x-1) n(5)
正确
错误