大佬能帮忙看下问题吗?
import functools
def cmp_ignore_case(s1, s2):
if s1.upper()>s2.upper():
return 1
if s1.upper()<s2.upper():
return -1
else:
return 0
sorted_ignore_case = functools.partial(sorted,cmp_ignore_case)
print sorted_ignore_case(['bob', 'about', 'Zoo', 'Credit'])