如何从numpy数组中删除某些特定元素?说我有
import numpy as np
a = np.array([1,2,3,4,5,6,7,8,9])
然后我想删除3,4,7的a。我所知道的只是值的索引(index=[2,3,6])。
隔江千里
汪汪一只猫
相关分类