擅长:python、mysql、java
<p>您的代码几乎正确,只需更改此部分:</p>
<pre><code>with open('NewStuff.txt', 'a') as f:
for thing in first:
for thing2 in second:
f.write(thing + str(eeee) + thing2)
</code></pre>
<p>致:</p>
<pre><code>with open('NewStuff.txt', 'a') as f:
for thing,thing2 in zip(first,second):
f.write(thing + str(eeee) + thing2)
</code></pre>