代码如下,Windows环境下,无输出。本来应该输出10行Counting
```
package main
import "fmt"
func Count(ch chan int) {
ch <- 1
fmt.Println("Counting")
}
func main() {
chs := make([]chan int, 10)
for i := 0; i < 10; i++ {
chs[i] = make(chan int)
go Count(chs[i])
}
for _, ch := range (chs) {
<-ch
}
}
```
![image.png](https://static.studygolang.com/180126/3e9bc612bb510b602c9cb40ad3ac63a7.png)
有疑问加站长微信联系(非本文作者)