for循环制作等腰三角形for i in range(1, 10, 2): for j in range(10 - i): print(' ', end='') s = '* ' * i print(s)