擅长:python、mysql、java
<p>我不确定我是否完全理解您想要的内容,但是可以使用RestructedText来捕获示例中的信息:</p>
<pre><code>.. method:: kittens(format="json", count=10)
Creates kittens in the browser.
:param format: The format in which kittens will be generated.
:param count: The number of kittens to generate.
:return: A list of kittens
</code></pre>
<p><a href="http://sphinx.pocoo.org/" rel="nofollow">Sphinx</a>理解此语法,它是<a href="http://docutils.sourceforge.net/rst.html" rel="nofollow">Docutils</a>定义的基本reST标记的扩展。在</p>