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