赞
踩
lst = [[1,2,3,4,5,6], [7,8,9,10,11,12], [71,81,91,101,111,121]]arr = np.asarray(lst) print(arr[0:2, 0:4])
>>>
[[ 1 2 3 4] [ 7 8 9 10]]