从list中提取第1、3、6个元素,代码如下 import numpy as np a = [1,2,3,4,5,6,7,8] a_ndarray = np.array(a) b = a_ndarray[[0,2,5]]