试着输入以下代码:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
package main

import "fmt"
import "sync"

func main() {
	a := make([]int, 5)
	var wg sync.WaitGroup
	wg.Add(5)
	for i, j := range a {
		go func() {
			fmt.Println(i, j)
			wg.Done()
		}()
	}
	wg.Wait()
}

你觉得输出是啥?