标签: python list python-2.7 max
为什么空列表被认为大于整数:
In [112]: max(1,2,[]) Out[112]:[]
还小于字符串:
In [112]: max(1,'a',[]) Out[112]:'a'