使用 `str.upper` 或将所有字符转换为小写(`str.lower`)作为排序的键函数(`key`)都可以实现不区分大小写的排序效果。
2

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务