numpy.char.chararray.tostring #

方法

char.chararray。tostring (顺序= 'C' ) #

的兼容性别名tobytes,具有完全相同的行为。

尽管它的名字如此,但它返回的是bytes而不是str

自版本 1.19.0 起已弃用。