🌈 搜索
📅  最后修改于: 2022-03-11 14:45:31.070000             🧑  作者: Mango
test = numpy.array([ [1, 2], [3, 4], [5, 6] ]) >>> test[:,0] array([1, 3, 5]) >>> test[:,[0]] array([[1], [3], [5]])