Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 58021e6

Browse filesBrowse files
committed
🎉 修改第12章的章节序号
1 parent 65dfd12 commit 58021e6
Copy full SHA for 58021e6

File tree

Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed

‎docs/contents/ch12.md

Copy file name to clipboardExpand all lines: docs/contents/ch12.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ v7[-1:]
187187

188188

189189

190-
## 12.4 Vector类第3版:动态存取属性
190+
## 12.3 Vector类第3版:动态存取属性
191191

192192
**改进方案:**
193193
1. 新增支持位置模式匹配`__match_args__`
@@ -296,7 +296,7 @@ v.y, v.z, v.t
296296

297297

298298

299-
## 12.5 Vector类第4版:哈希和快速等值测试
299+
## 12.4 Vector类第4版:哈希和快速等值测试
300300

301301
**改进方案:**
302302
1. 新增`__eq__`方法:先判断两个对象的长度是否相等,再比较其中各个元素是否相等。
@@ -374,7 +374,7 @@ class VectorV4:
374374
return cls(memv)
375375
```
376376

377-
## 12.6 Vector第5版:格式化
377+
## 12.5 Vector第5版:格式化
378378

379379
**改进方案:**
380380
1. 新增`angle(self, n)`函数:使用n维球体的公式计算角坐标。
@@ -477,7 +477,7 @@ class VectorV5:
477477
return cls(memv)
478478
```
479479

480-
## 12.7 杂谈
480+
## 12.6 杂谈
481481

482482
- 把协议当作非正式接口:
483483
- 模仿内置类型实现类时,记住一点:模仿的程度对建模的对象来说合理即可。

‎notes/ch12.ipynb

Copy file name to clipboardExpand all lines: notes/ch12.ipynb
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"id": "7130b999",
289289
"metadata": {},
290290
"source": [
291-
"## 12.4 Vector类第3版:动态存取属性"
291+
"## 12.3 Vector类第3版:动态存取属性"
292292
]
293293
},
294294
{
@@ -432,7 +432,7 @@
432432
"id": "84b7a1cb",
433433
"metadata": {},
434434
"source": [
435-
"## 12.5 Vector类第4版:哈希和快速等值测试"
435+
"## 12.4 Vector类第4版:哈希和快速等值测试"
436436
]
437437
},
438438
{
@@ -527,7 +527,7 @@
527527
"id": "b8872eb6",
528528
"metadata": {},
529529
"source": [
530-
"## 12.6 Vector第5版:格式化"
530+
"## 12.5 Vector第5版:格式化"
531531
]
532532
},
533533
{
@@ -647,7 +647,7 @@
647647
"id": "b3814a5b",
648648
"metadata": {},
649649
"source": [
650-
"## 12.7 杂谈"
650+
"## 12.6 杂谈"
651651
]
652652
},
653653
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.