python numpy建立二维数组

import numpy as np a = np.array([[1,23,4],[2,4,5]]) #建立二维数组 b = a[:,:-1] #行取所有,列取第0列到倒数第二列 print(a) print(b)
相关文章
相关标签/搜索