doc: update python.md (#221)

This commit is contained in:
醉、倾城
2022-12-12 11:21:22 +08:00
committed by GitHub
parent 3d0d2947a0
commit 3964c0c301
2 changed files with 12 additions and 2 deletions

View File

@ -441,6 +441,17 @@ Enter your name: Tom
True
```
### 转义符号
| 转义符号 | 对应的操作 |
|---|---|
| `\\` | 输出反斜杠 |
| `\'` | 输出单引号 |
| `\"` | 输出双引号 |
| `\n` | 换行 |
| `\t` | 水平制表符 |
| `\r` | 光标回到首位 |
| `\b` | 退格 |
Python F 字符串(自 Python 3.6+ 起)
----------------