擅长:python、mysql、java
<p>我认为最好用播放器核心作为键。如果你使用palyerscores作为键,那么你就可以得到这些键,并且可以对键进行排序。然后你就可以找到最佳得分者和最低得分者。在</p>
<pre><code>playerName = ['a','b','c','d','e','f','g','h','i','j','k','l','m']
playerScore = [12,15,31,26,94,13,16,12,11,85,70,14,56]
player = dict(zip(playerScore, playerName))
PList = []
for i in player.keys():
PList.append(i)
PList.sort()
print(PList)
print(player)
</code></pre>