12 lines
155 B
Go
12 lines
155 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
// os.Args 获取命令行参数
|
||
|
func main() {
|
||
|
fmt.Printf("%#v", os.Args) //获取当前的执行文件和参数
|
||
|
}
|