본문 바로가기

IT Log

검색하기
IT Log
프로필사진 newly0513

  • 분류 전체보기 (171)
    • HTML (3)
    • Java (2)
    • JavaScript (9)
    • Linux (22)
      • CentOS 7 (20)
      • Ubuntu (1)
    • Machine Learning (7)
    • Open Source (42)
      • Apache (27)
      • CKAN (6)
      • Django (5)
      • Docker (4)
    • Python (21)
    • R (9)
    • SQL (36)
      • Hive(HiveQL) (5)
      • PostgreSQL (5)
      • Presto (3)
      • SQL Server (20)
    • Statistics (10)
      • 통계(Statistics) (8)
      • 분석(analysis) (2)
    • 기타 (9)
Guestbook
Recent Posts
Recent Comments
«   2025/07   »
일 월 화 수 목 금 토
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 29 30 31
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록변환 (1)

IT Log

[Python] Type Cast (타입 변환)

int float str bool type() 해당 데이터타입을 모르거나 확인이 필요한 경우 사용 # data type을 확인 type(123) type(12.3) type('123') type([]) type({}) type(()) # type 확인 결과 int() 해당 데이터를 int type으로 변환. 문자형의 경우 변환할 수 없음. int(1.23) int('123') int('a') # 실행결과 1 123 value error float() 해당 데이터를 float type으로 변환. 문자형의 경우 변환할 수 없음. float(12) float('12') float('-123') float('1e-003') float('a') # 실행결과 12.0 12.0 -123.0 0.001 error st..

Python 2021. 6. 6. 16:26
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바