摘要: 1. np.where(condition, x, y) 满足条件(condition),输出x,不满足输出y。 2. np.where(condition) 只有条件 (condition),没有x和y,则输出满足条件 (即非0) 元素的坐标。这里的坐标以tuple的形式给出,通常原数组有多少维, 阅读全文
posted @ 2019-05-27 23:09 xfxlesson 阅读(1342) 评论(0) 推荐(0) 编辑