📌  相关文章
📜  楼梯hackerrank解决方案python代码示例

📅  最后修改于: 2022-03-11 14:45:33.710000             🧑  作者: Mango

代码示例2
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)