你可以使用循环语句来输出数字金字塔。下面是一种可能的实现方法: n = int(input("请输入金字塔的层数:")) for i in range(1, n+1): # 输出该层的空格 for j in ...
確定! 回上一頁