摘要: a = {"a":1, "b":5, "c":3}b = sorted(a.items(), key=lambda x:x[1], reverse=True) #sorted用法print(b)print(min(zip(a.values(), a.keys()))) #找到字典中哪个值最大prin 阅读全文
posted @ 2021-06-02 10:18 林** 阅读(26) 评论(0) 推荐(0) 编辑