| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 715. Range Module
- Regular Expression
- concurrency
- 프로그래머스
- 시바견
- iterator
- Generator
- Python
- Convert Sorted List to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- data science
- 파이썬
- shiba
- Protocol
- Python Code
- 315. Count of Smaller Numbers After Self
- 운영체제
- t1
- 밴픽
- Class
- attribute
- 43. Multiply Strings
- 컴퓨터의 구조
- DWG
- 30. Substring with Concatenation of All Words
- LeetCode
- Substring with Concatenation of All Words
- kaggle
- Python Implementation
- Decorator
Archives
- Today
- Total
목록Interface (1)
Scribbling
Python: Interfaces
What is interface? Interface is a set of public methods. In python, 'X object', 'X protocol' and 'X interface' have the same meaning. In Python, protocol is pretty dynamic. In below example, FrenchDeck class does not inherit any class (other than default 'object' class). However, the class has sequential protocol as it has two magic methods (__len__, __getitem__). Likewise, in Python, object's d..
Computer Science/Python
2022. 4. 18. 15:20