goroutine 交替打印奇偶数

📝

内容提要

使用两个 goroutine 交替并且顺序地打印数字 1…10, 要求其中一个 goroutine 打印奇数,另一个 goroutine 打印偶数。

🏷️

标签

➡️

继续阅读