| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Class
- Python
- 43. Multiply Strings
- Decorator
- 109. Convert Sorted List to Binary Search Tree
- Convert Sorted List to Binary Search Tree
- 프로그래머스
- iterator
- 컴퓨터의 구조
- Python Code
- t1
- kaggle
- 30. Substring with Concatenation of All Words
- DWG
- Protocol
- 밴픽
- shiba
- LeetCode
- 파이썬
- Regular Expression
- Substring with Concatenation of All Words
- Python Implementation
- 715. Range Module
- 시바견
- concurrency
- 315. Count of Smaller Numbers After Self
- 운영체제
- Generator
- data science
- attribute
Archives
- Today
- Total
Scribbling
Python Immutable Dictionary, Set 본문
Immutable dictionary: MappingProxyType
Immutable Set: Frozenset
from types import MappingProxyType
d = {'a': 'apple', 'b': 'banana', 'c': 'carrot'}
d_fixed = MappingProxyType(d)
print(d_fixed['a'])
s = frozenset([1, 2, 3])
print(s)
'Computer Science > Python' 카테고리의 다른 글
| Python: Design Patterns (0) | 2022.03.25 |
|---|---|
| Python: Memoryview function (0) | 2022.03.23 |
| Python Data Structures: Sequences (0) | 2022.03.21 |
| Python Magic Methods: Pythonic Data Model (0) | 2022.03.16 |
| Python Grammar: Things that I forget often (0) | 2022.03.14 |