diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-08-21 16:22:08 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-08-21 16:22:08 +0200 |
commit | f3711a93832df46dc245075df08b9ebfc05266e9 (patch) | |
tree | 167c4c4a9bedd6b94392b20eb6e68bc38656d456 /Zettelkast/Notes/032220240826 - Python3 Escape Sequences.md | |
parent | 26b2ee8fe95026e84bd1721910d575db72cc1b3f (diff) |
forgot to commit for a while
Diffstat (limited to 'Zettelkast/Notes/032220240826 - Python3 Escape Sequences.md')
-rw-r--r-- | Zettelkast/Notes/032220240826 - Python3 Escape Sequences.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Zettelkast/Notes/032220240826 - Python3 Escape Sequences.md b/Zettelkast/Notes/032220240826 - Python3 Escape Sequences.md new file mode 100644 index 0000000..f63c208 --- /dev/null +++ b/Zettelkast/Notes/032220240826 - Python3 Escape Sequences.md @@ -0,0 +1,21 @@ +Escape sequences encode hard to type characters, e.g a tab \\t. + +Table of escape sequences: + +| Escape | What it does | +| ---------- | ----------------------------------------------------------- | +| \\\ | Backslash (\\) | +| \\' | Single-quote (') | +| \\" | Double-quote (") | +| \a | ASCII bell (BEL) | +| \b | ASCII backspace (BS) | +| \f | ASCII formfeed (FF) | +| \n | ASCII linefeed (LF) | +| \N{name} | Character named name in the Unicode database (Unicode only) | +| \r | Carriage return (CR) | +| \t | Horizontal tab (TAB) | +| \uxxxx | Character with 16-bit hex value xxxx | +| \Uxxxxxxxx | Character with 32-bit hex value xxxxxxxx | +| \v | ASCII vertical tab (VT) | +| \ooo | Character with octal value ooo | +| \xhh | Character with hex value hh | |