What is the equivalent to someA开发者_开发百科rray(:,1,1)
in python from Matlab?
In python someArray[:][0][0]
produces a different value
someArray[:,0,0]
is the Python NumPy equivalent of MATLAB's someArray(:,1,1)
. I've never figured out how to do it in pure Python, the colon slice operation is a total mystery to me with lists-of-lists.
精彩评论