최근 수정 시각 : 2026-05-23 11:34:55

The Zen of Python


1. 개요2. 전문3. 해설4. 기타5. 외부 링크

1. 개요

Python 구현체의 이스터 에그.

REPL에서 import this를 하면 볼 수 있다.

2. 전문

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

3. 해설

단순한 이스터 에그이지만 나름 Python의 핵심 철학을 담아낸 텍스트로 평가받아 자주 인용되곤 한다. 특히 'explicit is better than implicit', 'complex is better than complicated.' 등등의 원칙이 자주 인용되는 편. 등등이 자주 인용되는 편.

4. 기타

5. 외부 링크

분류