La propiedad dtype se utiliza para definir y acceder al tipo de datos de un array: a = np.array([0, 0, 1, 1, 0]) a.dtype # dtype('int64').
確定! 回上一頁