1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-22 02:54:25 +01:00

Merge pull request #177 from larsks/fix/quotes

Clarify for quoting examples
This commit is contained in:
Satwik Kansal 2020-01-20 14:20:22 +05:30 committed by GitHub
commit 97c10e6fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
README.md vendored
View File

@ -1210,7 +1210,7 @@ True
- In a usual python string, the backslash is used to escape characters that may have a special meaning (like single-quote, double-quote, and the backslash itself). - In a usual python string, the backslash is used to escape characters that may have a special meaning (like single-quote, double-quote, and the backslash itself).
```py ```py
>>> 'wt\"f' >>> "wt\"f"
'wt"f' 'wt"f'
``` ```
- In a raw string literal (as indicated by the prefix `r`), the backslashes pass themselves as is along with the behavior of escaping the following character. - In a raw string literal (as indicated by the prefix `r`), the backslashes pass themselves as is along with the behavior of escaping the following character.