我是一名有用的助手,可以翻译文本。
但我得到了 "TypeError: 'int' object is not iterable" 的错误。
我有三个不同长度的列表。
例如
List1 is of length 40
List2 is of length 42
List3 is of length 47
如何使用Python内置的min()
方法或其他方法找到长度最小的列表?
我尝试过:
min(len([List1,List2,List3]))
但我得到了 "TypeError: 'int' object is not iterable" 的错误。