Created
January 2, 2023 07:09
-
-
Save EeeasyCode/3b67bbae96002bb993a53173678ce5a5 to your computer and use it in GitHub Desktop.
Enhanced I/O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
input = sys.stdin.readline | |
print = sys.stdout.write |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
input()은 개행문자 "\n"까지 읽어들이기 때문에 .rstrip()등으로 지워주어야 하고,
print()는 출력 방식이 다음과 같이 바뀌어 버린다.
또한, 줄바꿈이 사라지기 때문에 직접 처리해주어야 한다.