def star(m): # 高度
if m >= 5:
for i in range(m, 1, -1): # i:[m,m-1,...5,4,3,2]
f = 2 * i - 2 * (m) # f:[0,-2,-4...,4-2m]
for j in range(1, i): # 输出空格
print(" ", end="")
for n in range(f, 1): # 1 3 5 0 -2 -4 4 3 2 2i-8 输出星星
print("*", end="")
print()
for i in range(m, 1, -1): # 补齐最后行空格
print(" ", end="")
print("*") # 补充最后行星星
else:
print("你家树这么矮的?长土里去了?")