functools.partial(sorted,cmp)为什么语法都不能通过
import functools
sorted_ignore_case = functools.partial(sorted,cmp)
print sorted_ignore_case(['bob', 'about', 'zoo', 'credit'])
help(cmp)
import functools
sorted_ignore_case = functools.partial(sorted,cmp)
print sorted_ignore_case(['bob', 'about', 'zoo', 'credit'])
help(cmp)
2018-08-24
举报