标签:port bsp 数组 code min style nbsp numpy axis
import numpy as np a = np.array([[1,5,3],[4,2,6]]) print(a.min()) #无参,所有中的最小值 print(a.min(0)) # axis=0; 每列的最小值 print(a.min(1)) # axis=1;每行的最小值
标签:port bsp 数组 code min style nbsp numpy axis
原文地址:https://www.cnblogs.com/students/p/9397119.html