📜  python如何在字典中找到最大的数字 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:20.741000             🧑  作者: Mango

代码示例1
a_dictionary = {"a": 1, "b": 2, "c": 3}

max_key = max(a_dictionary, key=a_dictionary.get)
get key with max value


print(max_key)