赞
踩
- >>> np.zeros((3,2,4))
- array([[[ 0., 0., 0., 0.],
- [ 0., 0., 0., 0.]],
-
- [[ 0., 0., 0., 0.],
- [ 0., 0., 0., 0.]],
-
- [[ 0., 0., 0., 0.],
- [ 0., 0., 0., 0.]]])
- >>> k=np.zeros((3,2,4))
- >>> k[2][1][3]=1
- >>> k
- array([[[ 0., 0., 0., 0.],
- [ 0., 0., 0., 0.]],
-
- [[ 0., 0., 0., 0.],
- [ 0., 0., 0., 0.]],
-
- [[ 0., 0., 0., 0.],
- [ 0., 0., 0., 1.]]])
- >>>
-

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。