擅长:python、mysql、java
<p>词典已具有您需要的格式。所以我想这样做</p>
<pre><code>d = {"a": 3, "b": 5}
if len(set(d.values())) == 1: # check whether all the values are euqal.
print("NOTA")
else:
print(max(d, key=d.get))
</code></pre>
<p>这应该是你需要的,最好的部分,你可以有更多的a,b,你可以有c,和d,:-)</p>