numpy.char.chararray.replace#

method

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

对于 self 中的每个元素,返回一个字符串的副本,其中子字符串 old 的所有出现都替换为 new .

参见

char.replace