📜  python 3d 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.596000             🧑  作者: Mango

代码示例1
Explaination:
    import numpy as np

    np.zeros(the amount of arrays, amount of rows, the amount of colums)
---------------------------------------------------------------------
Usage:
    array_city = np.zeros((2, 3, 4))
    print(array_city)
---------------------------------------------------------------------
Results:
[
    [
      [0. 0. 0. 0.],
        [0. 0. 0. 0.],
      [0. 0. 0. 0.],
    ],
      
    [
      [0. 0. 0. 0.],
      [0. 0. 0. 0.],
      [0. 0. 0. 0.],
    ]
]