擅长:python、mysql、java
<p>如果您从<a href="https://github.com/rg3/youtube-dl/tree/master/docs" rel="noreferrer">github</a>下载一个版本,您可以生成sphinx文档,这对开发非常有用。然后使用pythons help函数通常可以知道函数的目的是什么</p>
<pre><code>>>> import youtube_dl as yt
>>> help(yt)
</code></pre>
<p>此外,我发现ipython是一个使用<code>%edit</code>魔术探索代码的有用工具。</p>
<pre><code>%edit yt.main
</code></pre>
<p>将直接带您到主函数的源代码。</p>