ndarray_to_bytes

ndarray_to_bytes(ndarray: ndarray[Any, dtype[Any]]) bytes[source]

将 NumPy ndarray 序列化为字节。