Hi,
嗨,
how to create multidimensional array in python ?
如何创建Python中的多维数组?
that's what I was looking for
这就是我要找的是:)
in java it's quite easy, for instance, to create Integer array ;
在Java很容易,例如,创建整数数组;
int[][] arrayName = { {0,1,2} , {0,1,2} };
and to do the same thing in python,
和在Python做同样的事情,
arrayName = map(range,[3] * 2)
print arrayName
# [ [0,1,2], [0,1,2] ]
to test this, I made a basic version of the Minesweeper game in c4d since we can use 2D array to define the grid.
为了测试这一点,我做的扫雷游戏的基本版本中C4d既然我们能用二维数组来定义网格。
here's an example :
这里的一个例子:
AI Power是一款创新的Cinema 4D插件,由知名的3D技术公司3D TOALL开发。这款插件能够与C4D无缝对接,用户只需构建基础模型并提供关键词,即可迅速生成高水准的渲染图像。与传统的C4D工作流程(包括建模、布光、材质和渲染)相比,AI Power极大地简化了这一过程,显著提高了图像生成的效率。