Python: Raw String

By Xah Lee. Date: .

Raw string

xx = r"this \n and that"

print(xx)
# prints
# this \n and that

# the backslash n do not have special meaning
# raw string with triple quote

xx = r"""this
and \n that"""

print(xx)

# this
# and \n that

Python, String