Fork me on GitHub
摘要: package main import s "strings" import "fmt" var p = fmt.Println func main() { p("Contains: ", s.Contains("test", "es")) //是否包含 true p("Count: ", s.Count("test", "t")) //字符串出现字符的次数 2 ... 阅读全文
posted @ 2016-04-13 10:01 磊哥|www.javacn.site 阅读(4112) 评论(0) 推荐(0) 编辑