python 为什么元组max函数结果是这个?

2025-04-28 23:31:20
推荐回答(1个)
回答1:

谁说结果是free的。。。

下面是实际在Python3运行的结果

>>> t = ([ ], 23, -1034, 'free', 'easy')
>>> max(t)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unorderable types: int() > list()