代码如下:def cmp_ignore_case(s1, s2): x=s1[0].lower() y=s2[0].lower() return x>yprint sorted(['bob', 'about', 'Zoo', 'Credit'], cmp_ignore_case) 查看完整描述