[Python] 파이썬 다운 생각
"import this"
[사전 작업]
작업장 만들기 - 개인적으로 Cloude9에서 만들었음(https://c9.io)
예제 소스 다운 - Github.com 가입은 필요 없음
git clone https://github.com/gilbutITbook/006764
[버전 체크]
firstpw:~/workspace/python_coding $ alias py=python
firstpw:~/workspace/python_coding $ py --version
Python 2.7.6
firstpw:~/workspace/python_coding $ alias py3=python3
firstpw:~/workspace/python_coding $ py3 --version
Python 3.4.3
firstpw:~/workspace/python_coding $ py
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.version_info
sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
>>>
firstpw:~/workspace/python_coding $ py3
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.version_info
File "<stdin>", line 1
print sys.version_info
^
SyntaxError: Missing parentheses in call to 'print'
>>> print(sys.version_info)
sys.version_info(major=3, minor=4, micro=3, releaselevel='final', serial=0)
>>> print(sys.version)
3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4]
>>>
'프로그램...' 카테고리의 다른 글
[무료S/W] 백신 (0) | 2018.08.07 |
---|---|
[용어] ALC(RFC 3450=>5775 - Asynchronous Layered Coding) (0) | 2017.11.15 |
How to print a stack trace in your user space linux application (0) | 2017.07.10 |
[특수문자] (0) | 2016.01.14 |
[C1004W] Booting Log (0) | 2015.10.29 |