티스토리 뷰
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
>>> type(1)
<class 'int'> #정수
>>> type(3.14)
<class 'float'> #실수
>>> type(3-4j)
<class 'complex'> #복소수
>>> type('Hello')
<class 'str'> #문자
>>> a = ['red','green','gold']
>>> type(a)
<class 'list'> #리스트
>>> a = {1,2,3}
>>> type(a)
<class 'set'> #세트
>>> a = (1,2,3)
>>> type(a)
<class 'tuple'> #튜플
>>> a = dict(a=1,b=2)
>>> b = {'a':1,'b':2}
>>> a
{'a': 1, 'b': 2}
>>> b
{'a': 1, 'b': 2}
>>> type(a)
<class 'dict'> #사전
>>> type(b)
<class 'dict'>
>>> a = True
>>> b = False
>>> type(a)
<class 'bool'> #부울(논리값)
>>> type(b)
<class 'bool'>
'Python' 카테고리의 다른 글
Python, 튜플 (0) | 2016.04.19 |
---|---|
Python, 세트 (0) | 2016.04.19 |
Python, 리스트 (0) | 2016.04.19 |
Python, Indexing (0) | 2016.04.19 |
Python, 특수문자 (1) | 2016.04.19 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- FetchType
- JPA
- 폼
- tkinter
- Module
- indicatoron
- 리눅스
- Java
- apache
- highlightbackground
- 상수
- vba
- onetomany
- disabledforeground
- tkinter command & bind [명령어묶기와 사건묶기] Python
- Linux
- command
- IdClass
- 파이썬
- activeforeground
- checkbutton
- Python
- ManyToOne
- Excel
- borderwidth
- highlightthickness
- Private
- Composite Key
- activebackground
- fetch join
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함