knrt.net
当前位置:首页 >> FunCtools.Cmp to kEy >>

FunCtools.Cmp to kEy

>>> sorted(['bob','Bob','about','Zoo','Credit'], key=str.lower)['about', 'bob', 'Bob', 'Credit', 'Zoo']忽略大小写的比较,先转小写作为键值排序

网站首页 | 网站地图
All rights reserved Powered by www.knrt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com