반응형
number = 9
print(type(number)) # 변수 "number"의 타입을 프린트 하기
float_number = 9.0
print(type(float_number)) # 변수 "float_number"의 타입을 프린트 하기
산출물 (Output)
<class 'int'> # 변수 "number"의 타입 "int"를 프린트 했습니다
<class 'float'> # 변수 "float_number"의 타입 "float"를 프린트 했습니다
반응형
'Python 배우기' 카테고리의 다른 글
연산자 arithmetic_operators.py (0) | 2016.03.06 |
---|---|
타입 바꾸기 type_cast.py (0) | 2016.03.06 |
변수_정의 variable_definition.py (0) | 2016.03.06 |
Python Object and Classes 파이썬 객체와 클래스 (0) | 2016.03.05 |
Running phython programs (0) | 2016.03.05 |
댓글