现在将其应用于ndarray 对象import numpy as np dt = np.dtype([('age',np.int8)]) a = np.array([(10,),(20,),(30,)], dtype = dt) print a. 输出如下:
確定! 回上一頁