当前位置: 代码迷 >> 综合 >> python的取list中类型不一致的最大值报错
  详细解决方案

python的取list中类型不一致的最大值报错

热度:32   发布时间:2023-09-20 01:39:58.0

Traceback (most recent call last):
  File "C:/Users/pactera/PycharmProjects/study/number", line 8, in <module>
    print("list1[1:5]:",max(list1));
TypeError: '>' not supported between instances of 'int' and 'str'

  相关解决方案