numpy.core.defchararray.chararray.isupper

chararray.isupper()[source]

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

也可以看看

char.isupper