请问,python 矩阵怎样返回指定行非零元素所在的列

0
已邀请:
0

施维而已 - 爬虫/data mining爱好者 2017-06-11 回答

np.argwhere(matrix[row]!=0)
 

要回复问题请先登录注册