Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Pipelining
- control
- html
- CSS
- javascript
- MacOS
- Class
- Java
- function
- DB
- MIPS
- Algorithm
- php
- system
- DATAPATH
- for
- computer
- python
- web
- github
- DoM
- architecture
- while
- mysql
- data structure
- DS
- Linux
- react
- XML
- instruction
Archives
- Today
- Total
YYYEJI
[Python] 형변환(Type Conversion)이란? 본문
728x90
형 변환(Type Conversion)이란 ?
데이터의 타입을 변경하는 것을 말합니다.
명시적 형변환(Explicit Type Conversion)
더 작은 크기의 타입을 집어 넣는 경우, 명시적으로 타입을 지정해줘야 되는 것을 말합니다.
float_number = 10.0
integer_number = int(float_number)
묵시적 형변환(Implicit Type Conversion)
더 큰 크기의 타입에 집어넣는 경우, 자동으로 더 큰 타입으로 형변환되는 것을 말합니다.
integer_number = 10
float_number = integer_number
◡̈
'Python' 카테고리의 다른 글
[Python] 이스케이프(Escape) 문자란? (0) | 2022.09.23 |
---|---|
[Python] 산술 계산 (0) | 2022.09.23 |
[Python] input 함수란? (0) | 2022.09.23 |
[Python] 데이터 타입(Data Types)의 정의와 종류 (2) | 2022.09.23 |
[Python] 들여쓰기(Indented block) 이란? (0) | 2022.09.23 |