摘要:
package main import ( "flag" "fmt" ) var ( recusive bool test string level int ) func init() { flag.BoolVar(&recusive,"r",false,"recusive xxx") flag.S 阅读全文
摘要:
package main import ( "fmt" "os" ) func main(){ fmt.Println("args[0]=",os.Args[0] ) // os.Args[0] 是该程序的名称 if len(os.Args)>1 { for index,v := range os. 阅读全文