Python 특징 및 data type

반디·2023년 3월 6일
0

Python

목록 보기
2/11

특징

  1. 오픈 소스

  2. easy to code: high-level programming language

    high-level programming languagelow-level programming language
    사용자 친화적기계 친화적
    디버깅이 쉽다디버깅이 비교적 어렵다
    유지\cdot보수가 쉽다유지\cdot보수가 비교적 어렵다
    플랫폼 독립적 (portable)machine-dependent
    complier나 interpreter가 필요assembler 필요
  3. 객체지향언어: 단위 모듈(객체) 중심
    https://www.geeksforgeeks.org/python-oops-concepts/

  4. 인터프리터 언어

    컴파일러 언어인터프리터 언어
    전체 코드 \rightarrow 기계어 \rightarrow 최적화 \rightarrow 실행line by line으로 실행: 코드의 각 line \rightarrow bytecode \rightarrow 실행
    실행속도 빠름실행속도 상대적으로 느림
    상대적으로 많은 메모리 사용상대적으로 적은 메모리 사용
    C, C++, Java, C#Python, Scalar
  5. 다양한 라이브러리가 존재

  6. 동적 타이핑 언어: 변수의 자료형이 런타임에 결정됨

  7. 동적 메모리 할당: 변수가 값으로 주어지는 순간에 메모리가 할당됨

Data type

data typesize표현 범위 (32-bit platform)
string1byte-
int4byte2312311-2^{31} \sim 2^{31} - 1
long\infty\infty
float8byte103081030810^{-308} \sim 10^{308}

참고문헌

profile
꾸준히!

0개의 댓글