📅  最后修改于: 2022-03-11 14:45:40.535000             🧑  作者: Mango
import numpy as np
A = np.array([[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]])
A[:,:3]
Out[3]:
array([[1, 2, 3],
[1, 2, 3],
[1, 2, 3]])