【LeetCode】【数组】题号:*520. 检测大写字母
作者:互联网
every blog every motto: You will never know unless you try
0. 前言
生活好难,再坚持坚持!
1. 字符串
1.1 题目
1.2
class Solution:
def detectCapitalUse(self, word: str) -> bool:
return word.islower() or word.isupper() or word.istitle()
1.3
标签:word,1.1,1.2,好难,LeetCode,every,520,题号 来源: https://blog.csdn.net/weixin_39190382/article/details/119009390