十个goroutine 打印 0 到 1000 后缀不同

答案解析

启动10个goroutine,每个goroutine打印0到1000,每次打印时加上自己的编号后缀(如“goroutine-1: 0”)。编号可用循环变量传入闭包。