擅长:python、mysql、java
<p>在python中,您将在docstring中这样注释。你知道吗</p>
<pre class="lang-py prettyprint-override"><code>def generate_random_matrix(n, m):
"""generate a random matrix
Parameters
-----------------
n : int
the height of the matrix
m : int
the width of the matrix
Returns
----------
An array with shape (n, m)
"""
pass
</code></pre>
<p>有几条指导方针来看看这个<a href="https://stackoverflow.com/questions/3898572/what-is-the-standard-python-docstring-format">anwser</a>。你知道吗</p>