1、先看看什么是 iterable 对象
以内置的max函数为例子,查看其doc:
复制代码 代码如下:
print max.doc
max(iterable[, key=func]) -> value
max(a, b, c, ...[, key=func]) -> value
With a single iterable argument, return its largest item.
With two or more arguments, return the largest argument.
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8