星号三角形 I

N = int(eval(input()))
for row in range(1,N+1):
	if row%2 != 0:
		a = '*'*row
		print ('{}'.format(a.center(N,' ')))
	row += 2
	

  

原文地址:https://www.cnblogs.com/liangmingshen/p/9046599.html