numpy.chararray.isspace

chararray.isspace()[source]

如果字符串中只有空格字符并且至少有一个字符,则为每个元素返回true,否则返回false。

也可以看看

char.isspace