【发布时间】:2020-04-04 07:38:05
【问题描述】:
拜托,我被告知find the maximum value of the list of keys in python,但在此之前我被告知“创建并排序字典键的列表”,我用这段代码做到了
sorted_keys = sorted(verse_dict.items(), key = lambda t: t[0])
但是现在,我被告知要在我创建的键列表中找到具有最高值的元素。
【问题讨论】:
-
这能回答你的问题吗? Python 3 sort a dict by its values
标签: python-3.x max