>>> import numpy >>> a = numpy.array([[1,2,3],[2,2,2],[5,5,5]]) >>> a array([[1, 2, 3], [2, 2, 2], [5, 5, 5]]) >>> a[0:2,0:2] array([[1, 2], [2, 2]])