mat1[1,1] = 1000 # 不能 mat1[1][1]print(mat1)mat1[1:2] = 999print('矩阵批量赋值\n',mat1) [[ 1 2] [ 3 1000]]矩阵批量赋值 [[ 1 2] [999 999]]