Guest User

Untitled

a guest
Feb 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "os"
  6. )
  7.  
  8. func main() {
  9. // 获取参数
  10. for i, arg := range os.Args[1:] {
  11. fmt.Printf("获取到第 %d 个参数: %s\n", i, arg)
  12. }
  13. }
Add Comment
Please, Sign In to add comment