擅长:python、mysql、java
<p>您可以使用<code>zip</code></p>
<pre><code>for j, k in zip(range(1,4), ['one', 'two', 'three']):
print('{} is written {}'.format(j, k))
1 is written one
2 is written two
3 is written three
</code></pre>
<p>如果一个比另一个长,可以考虑使用<a href="https://docs.python.org/3/library/itertools.html#itertools.zip_longest" rel="noreferrer">^{<cd2>}</a></p>