def toLower(x,y): if x.lower() < y.lower(): return -1 elif x.lower() > y.lower(): return 1 else: return 0print (sorted(['bob', 'about', 'Zoo', 'Credit'],key = toLower,reverse=True))
添加回答
举报
0/150
提交
取消