BC99 正方形图案

思路:

step1:逐行打印;

代码如下:

while True:
    try:
        n = int(input())
        i = 0
        while i < n:
            print('* ' * n)
            i += 1
    except:
        break