Created
January 10, 2012 18:42
-
-
Save sungmin-park/1590447 to your computer and use it in GitHub Desktop.
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
# r 또는 R 을 문자열 가장 앞에 붙여 주면 raw string으로 인식합니다. | |
assert '\\Programing Files\\Common Files' == r'\Programing Files\Common Files' | |
assert '\\Programing Files\\Common Files' == R'\Programing Files\Common Files' | |
# raw string에서 \는 마지막 문자로는 사용할 수 없습니다. | |
# r'\' 또는 r'some string\' 은 구문 오류가 납니다. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment