Python打印等腰三角形 根据输入的高度打印一个等腰三角形 n = int(input("请输入高度:")) for i in range(0,n): for j in range(0,n-i): print(" " ,end="") print("*" * (2*i+1))