摘要: 例: [java] view plain copy [java] view plain copy 阅读全文
posted @ 2016-12-29 16:56 赵客缦胡缨-Nicholas 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 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-12-29 16:54 赵客缦胡缨-Nicholas 阅读(217) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( // "bufio" "fmt" "github.com/axgle/mahonia" // "log" "bytes" "os" "strings")func main() { file, err := os.Open("hu.txt") defer fi 阅读全文
posted @ 2016-12-29 16:42 赵客缦胡缨-Nicholas 阅读(308) 评论(0) 推荐(0) 编辑