numpy.core.defchararray.chararray.rstrip

chararray.rstrip(chars=None)[source]

对于self中的每个元素,返回一个删除了尾随字符的副本。

也可以看看

char.rstrip