【发布时间】:2020-04-04 18:13:42
【问题描述】:
我不断收到以下错误:TypeError: '<' not supported between instances of 'set' and 'tuple',我不知道为什么?
这是我的代码:
print(reduce(lambda x,y: x<y, set(list(map(tuple,list1))), set(list(map(tuple,list2)))))
【问题讨论】:
-
这对我来说绝对不简单。
-
向我们展示完整的错误回溯。
标签: python python-3.x list set higher-order-functions