티스토리 뷰
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
리스트와 유사하나 읽기전용
제공되는 함수 적으나, 속도 빠름
()로 묶어서 정의
>>> t = (1,2,3)
>>> t
(1, 2, 3)
>>> type(t)
<class 'tuple'>
-. count,index
>>> t.count(1)
1 #t에서 1의 개수 셈
>>> t.index(1)
0 #t에서 1의 자리숫자
-. 튜플생략의 예
>>> (a,b) = (1,2)
>>> type((a,b))
<class 'tuple'>
'Python' 카테고리의 다른 글
Python, 사전(Dictionary) (0) | 2016.04.21 |
---|---|
Python, list(), set(), tuple()의 형변환, in (0) | 2016.04.19 |
Python, 세트 (0) | 2016.04.19 |
Python, 리스트 (0) | 2016.04.19 |
Python, Indexing (0) | 2016.04.19 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- command
- tkinter command & bind [명령어묶기와 사건묶기] Python
- activebackground
- Java
- highlightbackground
- 폼
- 파이썬
- fetch join
- vba
- JPA
- tkinter
- borderwidth
- IdClass
- disabledforeground
- indicatoron
- Excel
- 리눅스
- onetomany
- ManyToOne
- Module
- Linux
- apache
- FetchType
- activeforeground
- Python
- Private
- 상수
- checkbutton
- Composite Key
- highlightthickness
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함