当前位置:网站首页>np.fliplr与np.flipud
np.fliplr与np.flipud
2022-07-31 05:15:00 【Cassiel_cx】
函数解析
np.fliplr() 是numpy库中的函数,作用是将 numpy 的数组进行左右翻转
np.flipud() 同样也是 numpy 库中的函数,作用是将 numpy 的数组进行上下翻转
使用示例
import numpy as np
n1 = np.array([[1,2,3,4],[2,3,4,5],[3,4,5,6],[4,5,6,7]])
print(n1)
n2 = np.fliplr(n1)
print(n2)
n3 = np.flipud(n1)
print(n3)
边栏推荐
猜你喜欢
mysql password modification method in Linux (pro-test available)
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下
Navicat从本地文件中导入sql文件
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
一文速学-玩转MySQL获取时间、格式转换各类操作方法详解
VS connects to MYSQL through ODBC (1)
Artifact SSMwar exploded Error deploying artifact.See server log for details
Hyper-V新建虚拟机注意事项
DeFi Token in the project management
Flutter mixed development module dependencies
随机推荐
CMOS管原理,及其在推挽电路中的应用
A simple bash to powershell case
Linux modify MySQL database password
cocoscreator 显示刘海内容
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
[Cloud native] Open source data analysis SPL easily copes with T+0
quick-3.6源码修改纪录
MYSQL transaction and lock problem handling
360 加固 file path not exists.
mysql common commands
VTK:Could not locate vtkTextRenderer object.
On the side of Ali, tell me what are the application scenarios of message middleware you know?
flutter arr dependencies
WeChat applet source code acquisition and decompilation method
softmax函数详解
数据库 | SQL增删改查基础语法
quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
UiBot has an open Microsoft Edge browser and cannot perform the installation
C语言 | 获取字符串里逗号间隔的内容