一位同学在看我的 TensorFlow 深度学习教程的时候,问能不能多讲一下 Generator 。 于是我用 20 行 写了一个 Coroutine 的框架来展示怎么使用 Generator (标题党而已,其实有 60 行)
视频链接: http://www.bilibili.com/video/av6685277/
对了,深度学习的主教程在: https://github.com/CreatCodeBuild/TensorFlow-Chinese-Tutorial
当然, Coroutine 的框架参考了一些国外大神的教程,比如: https://emptysqua.re/blog/links-for-how-python-coroutines-work/
请大家多提意见,多吐槽。