Raw Strings don't treat the backslash as a special character : Raw String : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Raw String »

 

Raw Strings don't treat the backslash as a special character


# The last character in a raw string cannot be a backslash. 


print 'C:\Program Files\fnord\foo\bar\baz\frozz\bozz
print r'C:nowhere'
print r'C:Program Filesfnordfoobarbazfrozzbozz'
print r'Let's go!'



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Raw String