[Python] 고급 - 리스트 및 튜플(2)
컨테이너 타입 자료형(Container : 서로다른 자료형[list, tuple, collections.deque], a = [3, 3.5, 'a'] # 서로 다른 자료형, 컨네이너 타입 자료형 Flat : 한 개의 자료형[str, bytes, bytearray, array.array, memoryview]) 한개의 자료형만 저장, 빠름, 자연어 처리, 숫자, 이산, 회계분석, 기상데이터 등 단일 형태의 연산 가변(list, bytearray, array.array, memoryview, deque) 불변(tuple, str, bytes) unpacking # Tuple Advanced # Unpacking # b, a = a, b print(divmod(100, 9)) print(divmod(*(100..
[Python] 고급 - 리스트 및 튜플(1)
컨테이너 타입 자료형(Container : 서로다른 자료형[list, tuple, collections.deque], a = [3, 3.5, 'a'] # 서로 다른 자료형, 컨네이너 타입 자료형 Flat : 한 개의 자료형[str, bytes, bytearray, array.array, memoryview]) 한개의 자료형만 저장, 빠름, 자연어 처리, 숫자, 이산, 회계분석, 기상데이터 등 단일 형태의 연산 가변(list, bytearray, array.array, memoryview, deque) 불변(tuple, str, bytes) # 지능형 리스트(Comprehending Lists) # Non Comprehending Lists chars = '+_)(*&^%$#@!~)' code_list1 ..