Skip to content

Instantly share code, notes, and snippets.

@sungmin-park
Created January 10, 2012 18:42
Show Gist options
  • Save sungmin-park/1590447 to your computer and use it in GitHub Desktop.
Save sungmin-park/1590447 to your computer and use it in GitHub Desktop.
# 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