Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Tuple, unpacking?

Dikenal juga sebagai: tuple · unpacking

Definition 2.1 High School Computer Science · Bab 2 — Tuples, Sets and Comprehensions

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.

Baca dalam konteks →