def toLower(x,y):
if x.lower() < y.lower():
return -1
elif x.lower() > y.lower():
return 1
else:
return 0
print (sorted(['bob', 'about', 'Zoo', 'Credit'],key = toLower,reverse=True))

魔铃咔咔
产品经理不是经理
产品经理不是经理
随时随地看视频慕课网APP
相关分类