Python 根据两个字段排序 中文排序 汉字排序 升序 降序

Python3写法 代码 # -*- coding: utf-8 -*- # 需求:年龄倒序,姓名正序 from itertools import chain from pypinyin import pinyin, Style class Student: def __init__(self, n
posted @ 2022-10-24 18:12  0611163  阅读(829)  评论(0编辑  收藏  举报