未验证 提交 d4ad5a06 编写于 作者: A AmitShinde 提交者: GitHub

Update README.md

上级 9e28e001
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册