宣告陣列,使用LOOP始化給值. 7 a=[[0]*column for i in range(row)] # 宣告二維陣列名稱為a有row列column行 for i in range(row): for j in range(column): a[i][j]=0.
確定! 回上一頁