package main import ( "fmt" "os" "strings" ) func main() { who := "World" if len(os.Args) > 1 { who = strings.Join(os.Args[1:], " ") } arr := []string{"a", "b", "c"} fmt.Println("Hello", who) fmt.Println("Hello", arr[1:]) } E:\liteide\share\liteide\liteenv\1>1.exe 123 Hello 123 Hello [b c]
hello go
猜你喜欢
转载自xiangjie88.iteye.com/blog/2381244
今日推荐
周排行