当前位置:网站首页>判断numpy array数组的维数
判断numpy array数组的维数
2022-07-26 21:28:00 【天天进步2015】
直接上代码
import numpy as np
a = np.array([[1,2,3],[1,2,3]])
print(len(data.shape))输出2, 表示这是一个二维的数组。
边栏推荐
- Highlight the secondary and tertiary columns under the primary column of pbootcms
- Pytorch torch. add() torch. add_ () usage
- Flash source code startup phase
- If you do not add waitkey() function after imshow() function, it will not be displayed
- Pytoch squeeze() unsqueeze() usage
- 06 cp 命令
- Keyword maintenance of dream weaving document doesn't work
- Concept and classification of processes
- [shutter -- geTx] pop up - dialog, snackBar, bottomsheet
- Xshell7 personal free download, use
猜你喜欢

cmake编译obs-studio-27.2.0

JMeter自定义日志与日志分析

day07-

07 df 命令

Technology sharing | do you know the functions of the server interface automated testing and requests library?

Matlab pitch period estimation post-processing

In depth analysis of the source code, why is the string class immutable? (hit me before you understand)

正规方程法(Normal Equation)原理以及与梯度下降法的区别

yolov1

TASK04|分类分析
随机推荐
Go --- identifiers and keywords in go language
Matlab draws short-term average amplitude spectrum
The principle of normal equation method and its difference from gradient descent method
MOS 管示意图
伦敦银外汇走势理解与实操
正规方程法(Normal Equation)原理以及与梯度下降法的区别
My SQL is OK. Why is it still so slow? MySQL locking rules
Task04 | classification analysis
flask 源码启动阶段
08.02 邻接表
OPPO 自研大规模知识图谱及其在数智工程中的应用
Basic operation of (C language) files
Just one dependency to give swagger a new skin, which is simple and cool
Protobuf之proto基础语法
iptables防止nmap扫描以及binlog实现增量备份
[mysql]substr usage - query the value of specific digits of a field in the table
梦里的一碗面
Knowledge base tools | wechat, document center, image display page can be generated by dragging (with template, directly used)
ansible安装及使用
08 Du command