- 注意:是2倍的空格。。。。
while True:
try:
x = int(input())
for i in range(x):
print(" "*(x-i) +"*"*(i+1))
for j in range(x+1):
print(" "*j + "*"*(x+1-j))
except:
break
while True:
try:
x = int(input())
for i in range(x):
print(" "*(x-i) +"*"*(i+1))
for j in range(x+1):
print(" "*j + "*"*(x+1-j))
except:
break