标签:open bsp close gif import return UNC spl account
package main import "fmt" func main() { var accountArr2 = []string{"id", "name", "status", "timezone", "created_at", "updated_at", "organization_id"} flag := IsContain2(accountArr2, "whw") fmt.Println(flag) } // 判断字符串是否在切片中~~ func IsContain2(strList []string, item string) bool { for _, str := range strList { if str == item { return true } } return false }
标签:open bsp close gif import return UNC spl account
原文地址:https://www.cnblogs.com/paulwhw/p/13890088.html