擅长:python、mysql、java
<p>您可以使用<a href="https://docs.python.org/3.6/tutorial/datastructures.html" rel="nofollow noreferrer">list comprehension</a>进行此操作:</p>
<pre><code>['({}, {})'.format(el1.label, el2.label) for el1, el2 in my_list]
</code></pre>
<p>要不依赖元组维度,请使用helper函数:</p>
^{pr2}$