📅  最后修改于: 2022-03-11 14:45:33.710000             🧑  作者: Mango
from __future__ import print_function
def staircase(num_stairs):
n = num_stairs - 2
for stairs in range(1, num_stairs):
print(' ' * n, '#' * stairs)
n -= 1
print('#' * num_stairs)