D
Dicread
Trang chủTừ điểnTtuple

Lưu ý: Bản dịch của mục này hiện đang được kiểm tra chất lượng, vì vậy một số nội dung tạm thời chỉ hiển thị bằng tiếng Anh.

Mục từ này chưa được dịch sang ngôn ngữ của bạn, vì vậy nội dung gốc được hiển thị bên dưới.

tuple

tuple
Danh từ
Số nhiều: tuples

This term is primarily used in technical registers, specifically within mathematics, computer science, and database management. It describes a fixed-size collection of elements where the order of the items is significant. In programming, it often contrasts with a list or an array by being immutable, meaning its contents cannot be changed after creation.

In the context of relational databases, a tuple is the formal term for a row or record. While a table is a set of tuples, each individual tuple represents a single entity or instance of the data structure defined by the table's schema.

Ý nghĩa

Danh từtuple

A finite ordered list of elements, typically used in mathematics and computer science to represent a single record or a data structure.

The function returns a tuple containing the coordinates of the point.

Danh từtuple

A sequence of n elements, where n is a non-negative integer, often referred to as an n-tuple.

In relational database theory, a tuple represents a single row in a table.

Ví dụ

You can use a tuple to store a fixed set of values that should not change.

Office

Wait, did you define this as a list or a tuple?

Wait, did you define this as a list or a tuple?

Office

The API returns a 3-tuple consisting of a status code, a message, and a timestamp.

The API returns a 3-tuple consisting of a status code, a message, and a timestamp.

Business

I need to unpack this tuple into three separate variables.

I need to unpack this tuple into three separate variables.

Office

A tuple is immutable, meaning you cannot add or remove elements after it is created.

A tuple is immutable, meaning you cannot add or remove elements after it is created.

School Life

The database query returns each record as a tuple of strings.

The database query returns each record as a tuple of strings.

Office

Let's represent the player position as a 2-tuple of x and y coordinates.

Fantasy

I wonder if using a named tuple would make the code more readable.

I wonder if using a named tuple would make the code more readable.

The function expects a tuple of integers as its primary argument.

The function expects a tuple of integers as its primary argument.

School Life

Từ liên quan

Cập nhật lần cuối: May 2026Báo lỗi