题解 | #K形图案#

K形图案

https://www.nowcoder.com/practice/753cc2662d9949fe826a85f815db0ca4

while True:
    try:
        n=int(input())
        for i in range(n+1,1,-1):
            print(i*"* ")
        for j in range(1,n+2):
            print(j*"* ")
    except:
        break

全部评论

相关推荐

_mos_:要不是看评论区我都不知道你要找的是数分
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务