擅长:python、mysql、java
<p>使用您尝试的循环的解决方案是一种方法,这比Xions解决方案更适合初学者。</p>
<pre><code>list3 = []
for index, item in enumerate(list1):
list3.append(list1[index] + list2[index])
</code></pre>
<p>这也适用于较短的解决方案。使用map()和lambda,我更喜欢这个而不是zip,但这取决于每个人</p>
<pre><code>list3 = map(lambda x, y: str(x) + str(y), list1, list2);
</code></pre>