Python

(Python) 특수 문자 다루기

Accept 2024. 2. 1. 00:53
1. "!@#$%^&*()' 문자열 콘솔 출력 시
print("\"!@#$%^&*()\'")​


2. "C:\Download\'hello'.py" 문자열 출력 시
print("\"C:\Download\\\'hello\'.py\"")​

 

 

'Python' 카테고리의 다른 글

(Python) 유니코드 변환  (0) 2024.02.02
(Python) 진수 표기법  (0) 2024.02.01
(Python) math  (1) 2024.01.30
(Python) Collections  (0) 2024.01.30
(Python) bisect  (1) 2024.01.29