Home>Article>Backend Development> Detailed introduction to python data type tuples
This article describes the detailed introduction of python data type tuples
Tuples are actually a read-only list that cannot be added or changed, and can only be queried
For immutable information, Using tuples: For example, the two methods of data connection configuration
tuples: index, count
>>> r = (1,1,2,3) >>> r.count(1) >>> r.index(1) # index 只索引到第一处 >>>
The above is the detailed content of Detailed introduction to python data type tuples. For more information, please follow other related articles on the PHP Chinese website!