go 迭代string数组 go for string[]

180it 2020-10-24 AM 600℃ 0条

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

import (
"fmt"
)

func main() {
    subsCodes := []string{"aaaa", "vvvvv", "dddd", "eeeee", "gfgggg"}
    for _, s := range subsCodes {
        fmt.Println(s)
    }
}
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

go 迭代string数组 go for string[]