1 개요[ | ]
- Zen of Python
- 젠 오브 파이썬, 파이썬 선, 파이썬의 도
- Tim Peters가 쓴 파이썬 설계 원리 20선
- 파이썬 프로그래밍 언어 설계에 영향을 준 20가지 소프트웨어 원칙
- 라이선스: 퍼블릭 도메인
- 2004년 PEP 20으로 등록됨
- 파이썬 인터프리터에 이스터에그로 포함됨
import this
입력하면 출력됨
Python
Copy
import this
Loading
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 같이 보기[ | ]
4 참고[ | ]
편집자 Jmnote 39.7.50.238 Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.