520. Detect Capital

题目 代码 class Solution: def detectCapitalUse(self, word: str) -> bool: return word[1:]==word[1:].lower() or word==word.upper()
相关文章
相关标签/搜索