파이썬 print() 함수 줄바꿈 없이 출력
2022. 12. 19. 17:53
프로그래밍 언어/Python
파이썬의 print() 함수는 기본적으로 줄바꿈을 적용한다. 따라서, 줄바꿈 없이 출력하려면 다음과 같이 옵션을 적용해주어야 한다. 기본적으로 print() 함수의 사용법은 다음과 같다. Help on built-in function print in module builtins: print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout. sep:..