这样写为什么不行?求指导
import functools sorted_ignore_case = functools.partial(sorted, cmp=lambda s1, s2: s1.upper()> s2.upper()) print sorted_ignore_case(['bob', 'about', 'Zoo', 'Credit'])
import functools sorted_ignore_case = functools.partial(sorted, cmp=lambda s1, s2: s1.upper()> s2.upper()) print sorted_ignore_case(['bob', 'about', 'Zoo', 'Credit'])
2015-03-12
举报