arrA=[[,,,],[,,,],[,,,],[,,,]] N= #声明4x4数组arr arrB=[[None] * N for row in range(N)] print('[原设置的矩阵内容]') ): ): print('%d' %arrA[i][j],end='\t') print() #进行矩阵转置的操作 ): ): arrB[i][j]=arrA[j][i] print('[转置矩阵的内容为]') ): ): print('%d' %arrB[i][j],end='\t') p…