Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- 파이썬
- 선형대수
- graph
- yarn
- 딥러닝
- 하이브
- 하둡2
- Sort
- HelloWorld
- scrapy
- 코딩더매트릭스
- Java
- effective python
- 그래프이론
- hadoop2
- recursion
- C언어
- NumPy
- collections
- GRU
- RNN
- LSTM
- tensorflow
- 텐서플로
- 알고리즘
- C
- codingthematrix
- hive
- 주식분석
- python
Archives
- Today
- Total
EXCELSIOR
BETTER WAY 01 - 사용 중인 파이썬의 버전을 알자 본문
BETTER WAY 01 - 사용 중인 파이썬의 버전을 알자
Item01 - Know Which Version of Python You're Using
1 | import this | cs |
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!
12345 import sysprint(sys.version_info)print(sys.version)cs
sys.version_info(major=3, minor=5, micro=4, releaselevel='final', serial=0) 3.5.4 |Continuum Analytics, Inc.| (default, Aug 14 2017, 13:41:13) [MSC v.1900 64 bit (AMD64)]
'Python > Effective Python' 카테고리의 다른 글
BETTER WAY 5 - 시퀀스를 슬라이스하는 방법을 알자 (0) | 2018.01.29 |
---|---|
BETTER WAY 4 - 복잡한 표현식 대신 헬퍼(Helper) 함수를 작성하자 (0) | 2018.01.29 |
BETTER WAY 03 - bytes, str, unicode의 차이점을 알자 (0) | 2018.01.22 |
BETTER WAY 02 - PEP 8 스타일 가이드를 따르자 (0) | 2018.01.22 |
Effective python 스터디 게시판 입니다. (0) | 2018.01.22 |
Comments