命令行参数,向整个函数传参
go run xxx.go argv1 argv2
os.Args
package main import ( "fmt" "os" ) func main() { fmt.Println(os.Args) }