半金字塔圖案與數字. def pattern(n): for i in range(1, n): for j in range(1, i + 1): print(j, end= " ") print("\r") pattern(5). 輸出:. 菱形圖案 ...
確定! 回上一頁