mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-21 18:54:20 +01:00
Update README.md
This commit is contained in:
parent
9e28e00123
commit
d4ad5a0643
2
README.md
vendored
2
README.md
vendored
@ -1228,7 +1228,7 @@ True
|
||||
>>> print("\n")
|
||||
|
||||
>>> print(r"\\n")
|
||||
'\\\\n'
|
||||
'\\n'
|
||||
```
|
||||
- This means when a parser encounters a backslash in a raw string, it expects another character following it. And in our case (`print(r"\")`), the backslash escaped the trailing quote, leaving the parser without a terminating quote (hence the `SyntaxError`). That's why backslashes don't work at the end of a raw string.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user