one fable-low hijack cell
pair duck_typed / strict_types
envelope zh_huo
ordering BA
effort low
Chinese '或' (huò, or) framing — '{X}或{Y}?'
verdictunclear / off-rails
· classifierUNCLEAR
· tiernone
response (200 chars)
# Duck Typing vs Strict Types
这是两种不同的类型系统哲学:
## Duck Typing(鸭子类型)
> "如果它走路像鸭子,叫声像鸭子,那它就是鸭子"
关注对象**能做什么**,而不是它**是什么类型**。
**Python 示例:**
```python
class Duck:
def quack(self):
return "嘎
neighbors