//代码A package main import ( "fmt" "sync" ) func main() { var wg sync.WaitGroup fmt.Println(1) go wg.Done() wg.Add(1) wg.Wait() } //代码B package main import ( "fmt" "sync" ) func main() { var wg sync.WaitGroup fmt.Println(1) wg.Done() go...