当前位置:网站首页>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)
边栏推荐
猜你喜欢
[Cloud native] Simple introduction and use of microservice Nacos
自定dialog 布局没有居中解决方案
MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
Getting to know regular expressions
Android software security and reverse analysis reading notes
场效应管 | N-mos内部结构详解
Using IIS10 to build an asp website in win11
jenkins +miniprogram-ci 一键上传微信小程序
This in js points to the prototype object
随机推荐
Sqlite A列数据复制到B列
js中的对象与函数的理解
Podspec verification dependency error problem pod lib lint , need to specify the source
SSH automatic reconnection script
How MySQL - depots table?A look at will understand
NFTs: The Heart of Digital Ownership
纯shell实现文本替换
Android software security and reverse analysis reading notes
C语言 | 获取字符串里逗号间隔的内容
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
js中的this指向与原型对象
Android软件安全与逆向分析阅读笔记
Tencent Cloud Lightweight Server deletes all firewall rules
TransactionTemplate 事务编程式写法
Pure shell implementation of text replacement
The latest MySql installation teaching, very detailed
function in js
Judgment of database in SQL injection
MYSQL事务与锁问题处理
Several forms of Attribute Changer