摘要: 1.for循环里被关闭的通道 package main import ( "fmt" "time" ) func main() { c := make(chan int) go func() { time.Sleep(time.Second) c <- 10 close(c) }() for { s 阅读全文
posted @ 2024-11-01 14:31 朝阳1 阅读(2) 评论(0) 推荐(0) 编辑