go 迭代string数组 go for string[]

go 迭代string数组,直接拷贝去用即可

package main

import (
"fmt"
)

func main() {
    subsCodes := []string{"aaaa", "vvvvv", "dddd", "eeeee", "gfgggg"}
    for _, s := range subsCodes {
        fmt.Println(s)
    }
}
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页