np.argmax(a,axis=0/1/2)
https://blog.csdn.net/oHongHong/article/details/72772459)
a=3个4行5列
axis=0:三个4行*5列的数组逐位比大小;
axis=1:结果为3乘5可看作二维数组中axis=0,每列比大小;
axis=2:结果为3乘4可看作二维数组中axis=0,每行比大小
动手学python--numpy常用包的详解 ;动手学python--numpy常用包的详解
动手学python--numpy常用包的详解
np.sum(a,axis=0/1/2)理解上同上述np.argmax(a,axis=2)
动手学python--numpy常用包的详解
动手学python--numpy常用包的详解动手学python--numpy常用包的详解
np.where(condition,x,y)有条件无X和Y则输出满足条件的元素的位置‘’
(https://www.cnblogs.com/massquantity/p/8908859.html)
动手学python--numpy常用包的详解
np.fromfunction(f, shape=(5,6), dtype=int)
(https://blog.csdn.net/u012572354/article/details/78006519)
动手学python--numpy常用包的详解
其中的X和Y是行和列的坐标
np.ndenumerate©
枚举数组的位置和数值
动手学python--numpy常用包的详解
Python 列表、元组、字典及集合操作的详解
https://www.cnblogs.com/Jimc/p/9584606.html)
其中dict{key1:value1, key2:value2}
tuple()初始化后不可修改和list类似
list[a,b,‘c’,1]
set()无重复单元

相关文章:

  • 2022-12-23
  • 2022-02-08
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-10-24
  • 2021-11-12
猜你喜欢
  • 2021-04-18
  • 2022-12-23
  • 2021-11-12
  • 2021-11-15
  • 2021-11-28
  • 2022-01-02
相关资源
相似解决方案