题目:

题解:
func detectCapitalUse(word string) bool {
    // 若第 1 个字母为小写,则需额外判断第 2 个字母是否为小写
    if len(word) >= 2 && unicode.IsLower(rune(word[0])) && unicode.IsUpper(rune(word[1])) {
        return false
    }
    // 无论第 1 个字母是否大写,其他字母必须与第 2 个字母的大小写相同
    for i := 2; i < len(word); i++ {
        if unicode.IsLower(rune(word[i])) != unicode.IsLower(rune(word[1])) {
            return false
        }
    }
    return true
}










![[LitCTF 2023]只需要nc一下~-好久不见6](https://i-blog.csdnimg.cn/direct/9b153ae608a5447289269cde1b5e47bf.png)







