摘要: go中对通道chan遍历有两种方式一种是用range另一种为for select。 package main import ( "fmt" "strings" ) func main() { intChan0 := make(chan int, 10) for i := 0; i < 10; i++ 阅读全文
posted @ 2024-01-23 17:02 ALXPS 阅读(85) 评论(0) 推荐(0) 编辑