题目 代码 class Solution: def detectCapitalUse(self, word: str) -> bool: return word[1:]==word[1:].lower() or word==word.upper()