CHH3213 / Note-Ubuntu_CHH3213

ubuntu系统CHH3213上做的笔记
0 stars 0 forks source link

86. python比较两个数组是否相等 #86

Open CHH3213 opened 2 years ago

CHH3213 commented 2 years ago

https://blog.csdn.net/qq_34159047/article/details/107128022

(array1 == array2)返回两个矩阵中对应元素是否相等的逻辑值 (array1 == array2).all()当两个矩阵所有对应元素相等,返回一个逻辑值True (array1 == array2).any()当两个矩阵所有任何一个对应元素相等,返回一个逻辑值True