擅长:python、mysql、java
<p>如果你这样做:</p>
<pre><code>def test_with_args(farg, *args):
print "formal arg:", farg
for arg in args:
print "other args:", arg
</code></pre>
<p>其他信息:<a href="http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/" rel="nofollow">http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/</a></p>