Python

Python에서 printf 함수처럼 print 함수 사용하는 방법

jayden-lee 2019. 6. 6. 23:46
728x90

% 스타일 포맷팅

print("%d %s" % (10000, 'lelecoder'), end='')

 

{} 스타일 포맷팅

print("number={0}, name={1}".format(10000, 'lelecoder'))