numpy.ndarray.tostring#

方法

ndarray.tostring(order='C')#

tobytes 相容的別名,行為完全相同。

雖然名稱如此,但它返回的是 bytes 而非 strs。

自 1.19.0 版本起已棄用。