按照你的要求编写的数字金字塔的Python程序如下(abs()是求绝对值的函数) n=5 for i in range(1,2*n+2): for j in range(1,abs(n-i)+1): print(" ",end='') for j in ...
確定! 回上一頁