【发布时间】:2021-08-09 14:55:06
【问题描述】:
如何对包含字符串数字和字母的列表进行排序,以先按数字排序,然后按字母排序?
my_list = ["10","2","1","5","a","b","c"]
disable_sorted_list
"1","2","5","10","a","b","c"
【问题讨论】:
-
因为这看起来像家庭作业,这里还有一个问题应该为您指出解决方案! stackoverflow.com/questions/11850425/custom-python-list-sorting
标签: python