会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
下士闻道
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)
编辑
导航
博客园
首页
新随笔
联系
订阅
管理
公告