[Python]알고리즘/코드업

[기초-출력] 6001~6008

HSY_mumu 2022. 3. 15. 21:37
728x90

6006 특수문자 출력

print("\"!@#$%^&*()\'")

큰 따옴표와 작은 따옴표를 출력시킬 때

\" 또는 \를 이용해 출력

6007

print("\"C:\\Download\\\'hello\'.py\"")

 

\ 출력시킬 때

\\를 이용해 출력

6008

print("print(\"Hello\\nWorld\")")

\n 출력시킬 때

\\n를 이용해 출력

728x90