Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

numpy的shape获取矩阵的维度

import numpy as np
a=np.array([[1,2,3,4],[1,2,3,4]])
print(a.shape[0])
#2
print(a.shape[1])
#4

版权声明:本文为weixin_45631815原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_45631815/article/details/109116294
文章导航
←xmpp服务器性能测试,TSung测试XMPP协议 集群配置
ONNX 模型分析与使用→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1