摘要: 1、dict中找最大、最小值: my_dict = {'a':2, 'b':5, 'c':3, 'd':8, 'e':3} 只取key: maxValKey = max(my_dict, key=my_dict.get) #d minValKey = min(my_dict, key=my_dict 阅读全文
posted @ 2018-08-06 11:06 YYRise 阅读(198) 评论(0) 推荐(0) 编辑