티스토리 뷰

개발/python

[python] The Zen of Python

Jaeyeon Baek 2019. 3. 14. 00:47

>>> import this
The Zen of Python, by Tim Peters

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!

파이선에만 국한된 이야기가 아닙니다. 매번 읽을 때 마다 새롭게 다가오네요. :-) 

'개발 > python' 카테고리의 다른 글

한글 자모 분리  (12) 2019.05.02
[python] 사용자 데이터셋 셔플  (4) 2019.03.20
아나콘다 가상환경  (0) 2019.01.25
[3.6.2] numpy 맛보기  (0) 2017.10.02
가상환경(virtualenv)과 jupyter  (0) 2017.09.06
댓글
최근에 올라온 글
최근에 달린 댓글
글 보관함
Total
Today
Yesterday