Leon the start point

PostsAbout

5.4. Sets

2025년 12월 15일1 min read

  • official_ref

https://docs.python.org/3/tutorial/datastructures.html#sets

포함 여부를 자주 검사하거나 중복을 제거할 때 사용한다.

list comprehension과 비슷하게 기능을 지원

a = {x for x in 'abracadabra' if x not in 'abc'}

← python 3.14으로


그래프 뷰

  • python 3.14

Created with Quartz v4.5.2 © 2026

  • GitHub
  • Discord Community