2.2.4.3 recarray:仅仅方便2.2.4.3 recarray:仅仅方便In [9]: arr = np.array([('a', 1), ('b', 2)], dtype=[('x', 'S1'), ('y', int)])arr2 = arr.view(np.recarray)arr2.x Out[9]: chararray(['a', 'b'], dtype='|S1') In [10]: arr2.y Out[10]: array([1, 2])