擅长:python、mysql、java
<p>似乎您可能无意中截断了一个列表(或者<code>prizeList</code>或者<code>emailList</code>),因为<code>zip</code>只在一个输入列表(更一般的迭代器)完成之前进行迭代,<a href="https://docs.python.org/3.3/library/functions.html#zip" rel="nofollow noreferrer">as documented</a>。<br/>
当然,你可以通过打印每个列表的长度来检查,但我猜这就是你问题的根源。<br/>
<em>解决这个问题,取决于你实际想做什么,而我无法根据你的代码猜出足够的答案。<br/>
祝你好运</p>
<hr/>
<p>由于注释而更新:如果您担心没有正确地读取和/或写入文本文件,则这是另一个问题,应该单独检查和调试</p>