Python 中的内置元组函数
pythonserver side programmingprogramming更新于 2025/4/5 11:56:17
Python 包含以下元组函数 −
| Sr.No | 带说明的函数 |
|---|---|
| 1 | cmp(tuple1, tuple2) 比较两个元组的元素。 |
| 2 | len(tuple) 给出元组的总长度元组。 |
| 3 | max(tuple) 返回元组中具有最大值的项目。 |
| 4 | min(tuple) 返回元组中具有最小值的项目。 |
| 5 | tuple(seq) 将列表转换为元组。 |
相关文章
有用资源
python 参考教程 - 该教程包含有关 python 的更多信息:https://www.cainiaomax.com/python/

