파이썬 2 3 차이 4가지 (python print, int, float, string unicode)
파이썬 2 3 차이 4가지 (python print, int, float, string unicode) 1. print가 함수 형태로 변경 2.x style 12 >>> print "welcome to", "python3k"welcome to python3k cs 3 style 12>>> print("welcome to","python3k")welcome to python3kcs 또한 인자로 다음과 같이 구분자(sep), 끝라인(end), 출력(file)을 지정할 수 있습니다. 12>>> print("welcome to","python3k", sep="~", end="!", file=sys.stderr)welcome to python3k Colored by Color Scriptercs 이와 유사하게 입..
2017. 2. 13.