About 115,000 results
Open links in new tab
  1. Python 元组tuple详解(超详细) - 知乎

    Python内置函数/方法详解—元组tuple元组是 有序且不可更改的集合。 在Python中,元组使用圆括号 () 编写的。 1、创建元组元组的创建很简单,使用圆括号 () 直接创建或者使用 tuple () 函数创建,只需 …

  2. Python Tuple (元组) tuple ()方法 | 菜鸟教程

    Python2.x Python Tuple (元组) tuple ()方法 描述 Python 元组 tuple () 函数将列表转换为元组。 语法 tuple ()方法语法: tuple( iterable ) 参数 iterable -- 要转换为元组的可迭代序列。 返回值 返回元组。 实例 …

  3. Python Tuples - W3Schools

    Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage.

  4. Python 元组tuple详解(超详细)_python tuple-CSDN博客

    Jul 31, 2022 · 还探讨了元组与其他数据结构的区别,并列举了内置函数如print ()、len ()、type ()、tuple ()、max ()、min ()和del在元组上的应用。 此外,还讲解了count ()和index ()方法。

  5. Python Tuples - GeeksforGeeks

    Apr 6, 2026 · We can access the elements of a tuple by using indexing and slicing, similar to how we access elements in a list. Indexing starts at 0 for the first element and goes up to n-1, where n is the …

  6. Python Sets and Tuples Explained with Examples | OpenPython

    May 23, 2026 · Learn Python sets and tuples with clear examples. Covers creating sets, set operations (union, intersection, difference), frozensets, tuples, tuple unpacking, and when to use each data type.

  7. How to Declare and Use Tuples in Python?

    Apr 6, 2026 · Learn how to declare and use tuples in Python with this expert guide. Discover methods for packing, unpacking, and immutability with practical US-based examples

  8. Tuple - Wikipedia

    Tuple In mathematics, a tuple is a finite sequence (or ordered list) of numbers. More generally, it is a sequence of mathematical objects, called the elements of the tuple. An n-tuple is a tuple of n …

  9. tuple | Python’s Built-in Data Types – Real Python

    The built-in tuple data type provides an immutable sequence of values that can store any data type. Tuples are useful for storing heterogeneous data, such as records in a database or fixed collections …

  10. Python Tuple: How to Create, Use, and Convert

    Sep 16, 2025 · Learn how to create a Python tuple, how to use tuples, how to convert them to lists and strings, and how tuples differ from lists and sets.