Skip to content

Commit 993da6f

Browse files
authored
Add new errata items for 1-1
1 parent d5bf2a3 commit 993da6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/book/4/errata/1-1.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ P7 倒数第二个代码块 | `[tool.pdm.dev-dependencies]` | `[dependency-group
2020
P7 倒数第二个代码块上的描述 | 开发依赖会被写入 pyproject.toml 文件的 `[tool.pdm.dev-dependencies]` 表中 | 开发依赖会被写入 pyproject.toml 文件的 `[dependency-groups]` 表中 | 分组依赖表名称错误,系 PDM 新版本变更所致
2121
P146 代码清单 5-1 | `SQLITE_PATH = Path(__file__).resolve() / 'data.db'` | `SQLITE_PATH = Path(__file__).resolve().parent / 'data.db'` | SQLITE_PATH 变量少了 `parent` 属性
2222
P203 代码块 | `SQLITE_PATH = Path(__file__).resolve() / 'data.db'` | `SQLITE_PATH = Path(__file__).resolve().parent / 'data.db'` | SQLITE_PATH 变量少了 `parent` 属性
23-
P24 倒数第四行 | `flaskrun–help` | `flask run --help`| 排版错误 |
23+
P24 倒数第四行 | `flaskrun–help` | `flask run --help`| 出版社引入的排版错误 |
2424
P51 第一行 | 现在访问 http://localhost:5000/hello | 现在访问 http://localhost:5000/response | 路径错误 |
2525
P143 第二个代码块 | `__tablename = 'contacts'`| `__tablename__ = 'contacts'` | 变量结尾下划线缺失 |
26-
26+
P164 第二段文字括号部分 | 但必须添加 % 符号| 但不用添加 % 符号 | 出版社瞎改 |
27+
P164 表格第七行 | endnswith | endswith | 拼写错误 |
2728

2829
#### 出版社引入的排版问题
2930

0 commit comments

Comments
 (0)