擅长:python、mysql、java
<p>嗯哼</p>
<p>我读过<a href="http://www.dalkescientific.com/writings/NBN/generators.html" rel="nofollow noreferrer">this</a>和<a href="http://www.neotitans.com/resources/python/python-generators-tutorial.html" rel="nofollow noreferrer">this</a>,现在一切都很清楚了</p>
<p>实际上,我可以通过执行以下操作将生成器转换为列表</p>
<pre><code>mylist=list(myGenerator)
</code></pre>