带空格三角形_python3

带空格直角三角形图案

http://www.nowcoder.com/questionTerminal/192d1039c3d44155bb868073f5482670

while True:
    try:
        n = int(input())
        for i in range(n):
            print('  '*(n-1-i) + '* '*(i+1))
    except EOFError:
        break
全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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