1
摘要: ### 取字典中最大最小值对应的键 ``` # 取最大值对应的键 tmp_dict = {"a": 1, "b": 3, "c": 9, "d": 13} max_key = max(tmp_dict, key=lambda x: tmp_dict[x]) print(f"max key: {max 阅读全文
posted @ 2023-07-19 09:43 Bonne_chance 阅读(29) 评论(0) 推荐(0) 编辑
1