<p>基于<a href="http://infohost.nmt.edu/tcc/help/pubs/python/web/def.html" rel="nofollow noreferrer">this</a></p>
<blockquote>
<p>A positional argument is a name that is not followed by an equal sign
(=) and default value.</p>
<p>A keyword argument is followed by an equal sign and an expression that
gives its default value.</p>
</blockquote>
<pre><code>def rectangleArea(width, height):
return width * height
print rectangleArea(width=1, height=2)
</code></pre>
<p><strong>问题</strong>>;我假设<code>width</code>和<code>height</code>都是位置参数。那为什么我们还可以用关键字参数语法来调用它呢?</p>