파이썬은 귀도 반 로썸(Guido van Rossum) 이라는 분이 심심해서(!) 만들었다고 전해지는 프로그래밍 언어의 일종.


현재 최신 버전은 Python3.x 이지만 내가 필요한건 Python2.7 이므로 2.7 기준으로 정리할 예정.

어차피 2to3라는 모듈이 있기 때문에 필요하면 Python3.x로 코드를 변환하는 것은 어렵지 않음.


C언어를 할 줄 알면 배우기 쉽지만, 코드 들여쓰기 등에는 상당히 엄격한 문법 체계를 가지고 있다.

(그런데 Python3.x에서는 한글도 변수명으로 사용할 수 있다는 건 함정. 유니코드를 활용하게 되면서 가능해진 듯.)


iOS MDM 서버를 구축하면서.. 파이썬을 전혀 몰라서 배워야 할 필요가 있다고 느껴 파이썬을 시작하게 되었다.


import this 를 하면 이스터에그로 파이썬의 정신(?) 하여튼.. 추구하는 바라던가 하는것이 나온다.


The ZEN of Python
    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 are not 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.org의 비기너 가이드를 한국어로 번역 하면서 같이 공부 할 예정.


'프로그래밍 > Python' 카테고리의 다른 글

Python Tutorial : While loop [5]  (0) 2016.04.15
Python Tutorial : For loops [4]  (0) 2016.04.15
Python Tutorial : Variables [3]  (0) 2016.04.15
Python Tutorial : If statements [2]  (0) 2016.04.15
Python Tutorial : Text input and output [1]  (0) 2016.04.15

+ Recent posts