python 원시 문자열(raw string)

potato·2021년 7월 2일
0

원시 문자열

print('Please don\'t touch it')
print(r'Please don\'t touch it')
Please don't touch it
Please don\'t touch it
문자열을 시작하는 따옴표 앞에 r을 붙이면 이스케이프 문자가 적용되지 않은 있는 그대로의 원시 문자열을 나타낼 수 있습니다.
profile
안녕하세요~

0개의 댓글