当前位置:主页 > 软件编程 > Python代码 >
时间: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