Go复习--for循环陷井

for num := <-ch; num > -1; {
        fmt.Printf("<- = %d\n",num)
        numbers = append(numbers, num)
    }

知道为何一直输出如下吗?

<- = 0

猜你喜欢

转载自www.cnblogs.com/wanjch/p/11531979.html