range1 파이썬 버전별 출력법 + 기초적으로 숙지(제곱값, enumerate, range, 오버플로우) 목차1. 파이썬 버전별 출력법 2. Python3 이후 정수형 3. 파이썬에서 제곱값 구하기 4.enumerate()와 range()1.파이썬 버전별 출력법 파이썬의 최신 버전은 현재 3.9.4 버전이며 2 버전에서 3 버전으로 오며 많은게 바뀌었지만 그 중에서도 기초적인 print()의 방식의 차이가 있다. Old School Format(Python 2)#Old version # python 2 버전 지원 str='hello world' print('%s'%(str)) >>> 'hello world'New School Format(Python 2,3)#python 2,3 #New School Format str1='hello' str2='world' print('{} {}'.format(str1, s.. 2021. 4. 18. 이전 1 다음