包含Contains(s,substrstring)bool判断s是否包含substrtrue:包含false:不包含例子:str:="helloword"fmt.Println(strings.Contains(str,"hello"))//truefmt.Println(strings.Contains(str,"我"))//falsefmt.Println(strings
Go语言字符串基础示例详解
