摘要: package main import ( "os" "fmt" ) func main() { args := os.Args //获取用户输入的所有参数 if args == nil || len(args) <2{ Usage()//如果用户没有输入,或参数个数不够,则调用该函数提示用户 return } ... 阅读全文
posted @ 2017-06-26 17:21 浮尘微光 阅读(1663) 评论(0) 推荐(0)