numpy.char.chararray.tostring#

方法

char.chararray.tostring(order='C')#

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

儘管名稱如此,它返回的是 bytes 而非 str

自 1.19.0 版本起已棄用。