This commit is contained in:
2025-04-01 17:57:35 +08:00
parent 7857015405
commit a5caa734c3
36 changed files with 1503 additions and 318 deletions

View File

@@ -27,7 +27,7 @@ func splitWordsToLower(s string) []string {
// upperIndex 获得一个int slice,其元素是一个字符串的所有大写字母索引
func upperIndex(s string) []int {
var res []int
for i := 0; i < len(s); i++ {
for i := range len(s) {
if 64 < s[i] && s[i] < 91 {
res = append(res, i)
}