numpy.chararray.replace

方法

chararray.replace(old, new, count=None)[源代码]

对于中的每个元素 self ,返回包含所有子字符串的字符串副本 old 替换为 new .

参见

char.replace