Python: Raw String
Raw string
r
in front of the string quote means raw string, where backslash characters do not have special meaning.- Literal newline is still not allowed.
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
- Python: Quote String
- Python: Triple Quote String
- Python: Raw String
- Python: String Prefix Char
- Python: f-String (Format, Template)
- Python: String Escape Sequence
- Python: Unicode Escape Sequence
- Python: Print String
- Python: Print Without Newline
- Python: Convert to String
- Python: Join String
- Python: Format String
- Python: String Methods
- Python: Search Substring
- Python: Split String
- Python: String, Check Case, Char Class
- Python: Letter Case Conversion
- Python: Unicode 🐍
- Python 2: Unicode Tutorial