<ul> <li>*args同js的rest语法<pre class="prettyprint linenums prettyprinted" style=""><ol class="linenums"><li class="L0"><code><span class="kwd">def</span><span class="pln"> aa</span><span class="pun">(*</span><span class="pln">args</span><span class="pun">):</span></code></li><li class="L1"><code><span class="pln"> </span><span class="kwd">print</span><span class="pun">(</span><span class="lit">1</span><span class="pun">,</span><span class="lit">2</span><span class="pun">,</span><span class="lit">3</span><span class="pun">)</span></code></li><li class="L2"><code><span class="pln">aa</span><span class="pun">()</span></code></li></ol></pre></li></ul>