本代码的详细讲解在:http://www.cnblogs.com/MnCu8261/p/6527360.html 主要目的是为了:能帮助自己更好的理解coroutine/generator 的使用。 知识点: select socket coroutine/generator