题目所给的 n,m 最大为 10题主你设定的 数组最大容量为10 ,相应的最大下标边界为9,所以 代码中 for 循环的 =号去掉即可即 for(int i = 0;i < n;i++) for(int j = 0;j < m;j++)