摘要: #-*- encoding=utf-8 -*- # python3代码 import operator 一. 按字典值排序(默认为升序) x = {1:2, 3:4, 4:3, 2:1, 0:0} 1. sorted_x = sorted(x.iteritems(), key=operator.it 阅读全文
posted @ 2022-01-14 23:07 physique 阅读(290) 评论(0) 推荐(0) 编辑