context := strings.Fields("zhangsan lisi wanger")
fmt.Printf("context[0] is: %s\n", context[0])
fmt.Printf("context[1] is: %s\n", context[1])
fmt.Printf("context[2] is: %s\n", context[2])
fmt.Printf("context is: %s\n", context)
看懂了吗?
context := strings.Fields("zhangsan lisi wanger")
fmt.Printf("context[0] is: %s\n", context[0])
fmt.Printf("context[1] is: %s\n", context[1])
fmt.Printf("context[2] is: %s\n", context[2])
fmt.Printf("context is: %s\n", context)
看懂了吗?