numpy返回array中元素的index方法
时间:2021-03-23 09:34:02|栏目:Python代码|点击: 次
如下所示:
import numpy a = numpy.array(([3,2,1],[2,5,7],[4,7,8])) itemindex = numpy.argwhere(a == 7) print (itemindex) print a
栏 目:Python代码
本文地址:http://www.codeinn.net/misctech/86189.html






