在使用深度学习的过程中,我们使用到了一些 Python 技巧。
不一定每个同学都熟悉 Python,所以 Python 加油站就建立啦!
Generator 是在 Python 2.5 (对,十多年了)中出现的老特性(对,虽然 JS 到 ES6 才有)。Generator 是一个可以让函数暂停的功能。
在 generator.py 中我们会探索 Generator 的基本以及高级一点地用法。
dummy-server 这个文件夹里面有一个 NodeJS 服务器,用来配合 Python Generator 的探索。
.../dummy-server$ node index.js
python generator.py