BC104 翻转金字塔图案

思路:

step1:注意打印⭐和空格的关系;

代码如下:

while True:
    try:
        n = int(input())
        i = 1
        while i <= n:
            j = 1
            while j <= n:
                if j >= i:
                    print('* ',end='')
                else:
                    print(' ',end='')
                j += 1
            print()
            i += 1
    except:
        break