📜  python ndim - Python 代码示例

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

代码示例1
x = np.array([1, 2, 3])
>>> x.ndim
1
>>> y = np.zeros((2, 3, 4))
>>> y.ndim
3