在python中使用numpy重新排列数组元素

在python中使用numpy重新排列数组元素,python,arrays,numpy,Python,Arrays,Numpy,如何从旧阵列(旧)中获取新阵列(新) 你是说像这样吗 >>> import numpy as np >>> OLD = np.array([1,4,7,2,5,8,3,6,9]) >>> OLD.reshape((3, 3), order='F') array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) 你是说像这样吗 >>> import numpy as np &g

如何从旧阵列(旧)中获取新阵列(新)

你是说像这样吗

>>> import numpy as np
>>> OLD = np.array([1,4,7,2,5,8,3,6,9])
>>> OLD.reshape((3, 3), order='F')
array([[1, 2, 3],
       [4, 5, 6],
       [7, 8, 9]])
你是说像这样吗

>>> import numpy as np
>>> OLD = np.array([1,4,7,2,5,8,3,6,9])
>>> OLD.reshape((3, 3), order='F')
array([[1, 2, 3],
       [4, 5, 6],
       [7, 8, 9]])
你是说像这样吗

>>> import numpy as np
>>> OLD = np.array([1,4,7,2,5,8,3,6,9])
>>> OLD.reshape((3, 3), order='F')
array([[1, 2, 3],
       [4, 5, 6],
       [7, 8, 9]])
你是说像这样吗

>>> import numpy as np
>>> OLD = np.array([1,4,7,2,5,8,3,6,9])
>>> OLD.reshape((3, 3), order='F')
array([[1, 2, 3],
       [4, 5, 6],
       [7, 8, 9]])

是的,谢谢。你能告诉我:order='F'的意思吗@MGILSON基于“C”的排序与基于“F”的ortran排序之间存在差异。插入order='C'以获得差异。是的,谢谢。你能告诉我:order='F'的意思吗@MGILSON基于“C”的排序与基于“F”的ortran排序之间存在差异。插入order='C'以获得差异。是的,谢谢。你能告诉我:order='F'的意思吗@MGILSON基于“C”的排序与基于“F”的ortran排序之间存在差异。插入order='C'以获得差异。是的,谢谢。你能告诉我:order='F'的意思吗@MGILSON基于“C”的排序与基于“F”的ortran排序之间存在差异。插入订单class='C'以了解差异。