How can I get the dict whose specific key is maximum in a dict of dicts?

后端 未结 0 1409
迷失自我
迷失自我 2020-12-04 12:45

Say I have a dictionary with max and min temperatures of every month:

t = {
    \'jan\': {
        \'max\': 21,
        \'min\': 12
    },
    \'feb\': {
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题