Go 返回多个值 Go switch Go 字符串长度 Go 返回多个值 package main import "fmt" func swap(x, y string) (string, string) { return y, x } func main() { a, b := swap("Mahesh", "Kumar") fmt.Println(a, b) } Go switch Go 字符串长度