第一题 go代码是这样的吗 package main import ( "fmt" "time" ) func main() { stop := true go func(){ for stop{ fmt.Println("a") time.Sleep(2 * time.Second) } fmt.Println("b") }() time.Sleep(3 * time.Second) stop = false time.Sleep(3 * time.Second) fmt.Println("c") }

相关推荐

点赞 评论 收藏
分享
牛客网
牛客企业服务