A tuple is a sequence of values written between parentheses and separated by commas, such as (3, 4). Like a list it has a length and positions, read with p[i]; unlike a list, it cannot be changed once built. Unpacking assigns the values of a tuple to as many names at once: x, y = p.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Tuple, unpacking?
又称: tuple · unpacking