1 개요[ | ]
- Python 튜플, Python 투플
- 파이썬 tuple
- 순서가 있고 변경 불가능한 콜렉션
- 대략 값을 변경할 수 없는 리스트
- 원본의 변경 없는 연산은 가능
- 소괄호에 원소를 담아서 생성
Python
Copy
t = ("apple", "banana", "cherry")
print(t) # ('apple', 'banana', 'cherry')
print(t[1]) # banana
Loading
2 같이 보기[ | ]
3 참고[ | ]
- https://www.w3schools.com/python/python_tuples.asp
- https://www.tutorialspoint.com/python/python_tuples.htm
- https://www.programiz.com/python-programming/tuple
- https://docs.python.org/3/c-api/tuple.html
- http://openbookproject.net/thinkcs/python/english3e/tuples.html
- https://www.geeksforgeeks.org/tuples-in-python/
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.