summaryrefslogtreecommitdiff
path: root/zettelkast/Notes/032220240826 - Python3 Escape Sequences.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2024-11-23 11:30:28 +0100
committerJasper Ras <jras@hostnet.nl>2024-11-23 11:30:28 +0100
commit1f1423fdb8d4e2928768ffa33a6ad2b59c75e82e (patch)
tree67d94f0d821a053aca0e7c8a7ffb6c369047aa14 /zettelkast/Notes/032220240826 - Python3 Escape Sequences.md
parent93d36010a9d54bca1fdcaf1f4c99e6981aaf41bc (diff)
lowercase dirs
Diffstat (limited to 'zettelkast/Notes/032220240826 - Python3 Escape Sequences.md')
-rw-r--r--zettelkast/Notes/032220240826 - Python3 Escape Sequences.md21
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 |