First page Back Continue Last page Overview Graphics

raw strings

Raw strings are processed without language specific interpretation.

In Python 'raw strings' are preceded by an r od R.

Backslashes in a raw string are not interpreted as escape sequences:

>>> import os >>> os.getcwd() 'C:\\Users\\Bernd Klein\\Anaconda3' >>> path = r"C:\Users" >>> os.chdir(path) >>> os.getcwd() ''C:\\Users'