摘要: 前面介绍了asyncio的用法。下面我们来看下如何用协程的方式来实现之前的旋转指针的方法 @asyncio.coroutine def spin(msg): write,flush=sys.stdout.write,sys.stdout.flush for char in itertools.cyc 阅读全文
posted @ 2018-03-28 10:21 red_leaf_412 阅读(5151) 评论(1) 推荐(0)