Python : n = int(input("請輸入有幾層:")). #宣告n*n 層二維陣列. P = [[0 for i in range(n+1)] for j in range(n+1)]. #將計算的Pascal 三角形填入二維陣列.
確定! 回上一頁