2019年2月11日

nonzero

摘要: 在python的numpy里面这个函数的意义是返回参数数组中不为0的元素的索引(indics)。 from numpy import array output: [[1 0 0] [0 2 0] [1 1 0]] (array([0, 1, 2, 2], dtype=int64), array([0 阅读全文

posted @ 2019-02-11 07:49 下士闻道 阅读(245) 评论(0) 推荐(0) 编辑

导航