擅长:python、mysql、java
<p>看看<a href="http://docs.python.org/tutorial/controlflow.html#more-on-defining-functions" rel="nofollow noreferrer">the Python tutorial</a>第4.7.3和4.7.4节。
它将元组作为参数传递。</p>
<p>我还将考虑使用命名参数(并传递字典),而不是使用元组和传递序列。当位置不直观或有多个参数时,我发现使用位置参数是一种不好的做法。</p>