擅长:python、mysql、java
<p>根据<a href="http://www.python.org/dev/peps/pep-3113/" rel="noreferrer">http://www.python.org/dev/peps/pep-3113/</a>,元组解包已经消失,并且<code>2to3</code>将像这样翻译它们:</p>
<blockquote>
<p>As tuple parameters are used by lambdas because of the single
expression limitation, they must also be supported. This is done by
having the expected sequence argument bound to a single parameter and
then indexing on that parameter:</p>
<p><code>lambda (x, y): x + y</code> </p>
<p>will be translated into:</p>
<p><code>lambda x_y: x_y[0] + x_y[1]</code></p>
</blockquote>
<p>这与您的实现非常相似。</p>