打印闪电
halfHeight = int(input('请输入高度:'))
for line in range(1-halfHeight,halfHeight):
if line < 0:
spaceNumber = - line
starNumber = halfHeight - spaceNumber
print(spaceNumber * ' ' + starNumber * '*')
elif line == 0:
spaceNumber == 0
print(halfHeight*2*'*')
else:
starNumber = halfHeight - line
print(' '*halfHeight + starNumber*'*')