2.numpy数据选取 lst=[[1, 2, 3], [4, 5, 6]] np.array(lst)[:-1] Out[32]: array([[1, 2, 3]]) np.array(lst)[:,:-1] Out[33]: array([[1, 2], [4, 5]]) 1.Python中numpy数组的拼接.合并 https://blog.csdn.net/qq_39516859/article/details/80666070 import numpy as np#创建ndarray…