题解 | #空心正方形图案#
空心正方形图案
http://www.nowcoder.com/practice/72347ee949dc47399186ee183632f303
while True:
try:
num = int(input())
for i in range(num):
if i == 0 or i == num - 1:
print("* " * num)
else:
print("*" + " " * ((num - 2)*2+1) + "*")
except:
break