Development/Python
tuple : common sequence datatype
오도원공육사
2020. 7. 13. 23:57
반응형
https://docs.python.org/3/library/stdtypes.html#tuple
Built-in Types — Python 3.8.4rc1 documentation
The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions. Some collection classes are mutable. The methods that add, subtract,
docs.python.org
1. 정의
tuple_name = ('tuple', 'uses', '소괄호', 3, 4, (5, 6, 7))
2. common sequence
tuple은 immutable한 자료형이므로 안의 데이터를 변경할 수 없다. sequence 자료형이므로 인덱싱 관련 함수만 사용 가능하다.
출처 : python.org 공식문서
반응형