python利用np.where()实现不一样条件下的数据处理或者计算

numpy.where (condition[, x, y])用法 np.where(condition, x, y) 知足条件(condition),输出x,不知足输出y。python np.where([[True,False], [True,True]], # 官网上的例子 [[1,2], [3,4]], [[9,8], [7,6]]
相关文章
相关标签/搜索