擅长:python、mysql、java
<p>一个使用dict值的<code>sorted</code>的线性</p>
<pre><code>sol= {"shape1":[250, 300, 280],
"shape2":[46, 70, 5],
"shape3":[147, 12, 150],
"shape4":[107, 10, 108]}
[(k) for k, v in sorted(sol.items(), key=lambda item: item[1][0])][0] # 'shape2'
</code></pre>