Golang 学习笔记

字符串 字符串可以使用range访问 s := "test" for i, v := range s { // the type of v is rune fmt.Printf("index %d, value %c") } s := "test" s是常量, 无法通过下标进行修改, 需要转换成slice操作...

July 28, 2022 · k