虽然二维数组与线性代数中的矩阵类似,但是对它们的操作(比如乘)与线性代数中的操作(比如矩阵乘)是完全不同的。
Even though two-dimensional arrays are similar to matrices from linear algebra, operations (such as multiply) have nothing to do with the operations in linear algebra (such as matrix multiplication).
在构建完最终数组后,您可以迭代数组并生成骰子数总和的列表及其各自的机率。
Once you have built up your final array, you can iterate through the array and generate a list of sums and what their respective odds are.
此外,您可以使用该操作来迭代数组(包括基本类型数组)中的元素。
In addition, you can use this action to iterate through the elements of an array, including arrays of primitives.
应用推荐