📅  最后修改于: 2022-03-11 14:58:59.978000             🧑  作者: Mango
代码示例1
someString := "one two three four "
words := strings.Fields(someString)
fmt.Println(words, len(words)) // [one two three four] 4