数组之间可以通过索引直接取值 a = np.arrapy([3,6,8,9,10])#取a的索引为1和4a_index = np.array([1,4])a[a_index]打印的结果就是:array([6,10]) python 2023-09-13 48 点赞 0 评论 72 浏览