numpy.core.defchararray.chararray.isdigit

chararray.isdigit()[source]

如果字符串中的所有字符都是数字,并且至少有一个字符,则返回true,否则返回false。

也可以看看

char.isdigit