개발자/파이썬 Python

파이썬 실행하고 import this 명령하면 나오는 문장 번역

지구빵집 2016. 6. 3. 20:54
반응형

 

 

 

파이썬 실행하고 가장 먼저 입력해보는 게 

>>>import this 하시면 나오는 파이썬 계명을 번역해봤습니다.

 

C:\Users\Administrator>python

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (In

tel)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>>

>>>

>>> import this

The Zen of Python, by Tim Peters  파이썬 계명 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! 이름 공간은 좋은 생각이지만 그 이상을 수행하자.

 

>>>

 

아래 명령어 한번 입력해보세요~^^

 

 

>>> import antigravity

 

 

 

용기를 내자

 

 

 

반응형