[Python] Data Types

이동명·2021년 6월 8일
0

Python의 기본 Data Type에 대해 알아보자.

  1. 숫자형: int, float, complex

  2. Sequence형: list, tuple, range

    • range는 python 2에서는 함수였지만, python 3에서는 자료형으로 바뀌었다.
  3. mapping형: dict

  4. Set형: set, frozenset

    • frozenset은 변형이 불가능한 형태의 set 자료형이다.
    • frozensetset과 같이 union, intersection 과 같은 method 사용 가능하다.

0개의 댓글