파이썬3 와 파이썬2 의 엄청 중요한 차이점

보통 이걸 가장 먼저 언급해야하는데 아무도 언급하지 않기에 여기서 적어봅니다.

(bionic)soyeomul@localhost:~/test$ cat str.sh
#!/bin/sh
# -*- coding: utf-8 -*-

python3 -c "print('PY3K-대한민국', len('대한민국'))"
python2 -c "print 'PY2K-대한민국', len('대한민국')"

python3 -c "print('PY3K-KOREA', len('KOREA'))"
python2 -c "print 'PY2K-KOREA', len('KOREA')"



(bionic)soyeomul@localhost:~/test$ ./str.sh
PY3K-대한민국 > 4
PY2K-대한민국 > 12
PY3K-KOREA 5
PY2K-KOREA 5

문자열 처리할때 하마트면, 시끕할뻔했네유,;;;

꾸벅,

[ibus-hangul(서라운딩 패치판)에서 작성했씁니다]
[ibus-hangul(서라운딩 패치판)에서 내용을 다듬었습니다]