擅长:python、mysql、java
<p>正如其他人在comments部分中评论的那样,python字典的键必须是唯一的。引自python<a href="https://docs.python.org/2/tutorial/datastructures.html#dictionaries" rel="nofollow noreferrer">docs</a>:</p>
<blockquote>
<p>It is best to think of a dictionary as an unordered set of <em>key: value</em> pairs, with the requirement that the keys are unique (within one dictionary)</p>
</blockquote>
<p><strong>可能的解决方案</strong>:创建<code>list</code>而不是<code>dict</code>来存储字典。在</p>