GeezerVison is showing github.com — zip · themycode/StarterLearningPython@53851c9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: 205.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
212 | 212 |
|
213 | 213 | ------ |
214 | 214 |
|
215 | | -[总目录](./index.md) | [上节:函数(4)](./204.md) | [下节:类(1)](./206.md) |
| 215 | +[总目录](./index.md) | [上节:函数(4)](./204.md) | [下节:zip()补充](./236.md) |
216 | 216 |
|
217 | 217 | |
Collapse file
Copy file name to clipboardExpand all lines: 236.md +14-2Lines changed: 14 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -#再论zip() |
| 1 | +>因为耶和华赐人智慧,知识和聪明都由他口而出。他给正直人存留真智慧,给行为纯正的人作盾牌,为要保守公平人的路,护庇虔敬人的道。你也必明白仁义、公平、正直,一切的善道。智慧必入你心,你的灵要以知识为美。谋略必护卫你,聪明必保守你,要救你脱离恶道(注:或作“恶人的道”),脱离说乖谬话的人。(箴言书 2:6-12) |
2 | 2 |
|
3 | | -在 [《语句(4)》](./124.md)中,对zip()进行了阐述,但是,由于篇幅限制,没有阐述的太完整。所以,本讲再次将它拿出来,希望能够有一个完成的独立阐述,以便学习者参考。 |
| 3 | +#zip()补充 |
| 4 | + |
| 5 | +在[《语句(4)》](./124.md)中,对zip()进行了阐述,但是,由于篇幅限制,没有阐述的太完整。所以,本讲再次将它拿出来,希望能够有一个完成的独立阐述,以便学习者参考。 |
4 | 6 |
|
5 | 7 | ##内建函数zip() |
6 | 8 |
|
@@ -83,3 +85,13 @@ zip()也类似上面示例中构造的那个add()函数。 |
83 | 85 | >>> map(lambda pair: max(pair), zip(a, b)) |
84 | 86 | [2, 2, 9, 4, 9] |
85 | 87 |
|
| 88 | +参考: |
| 89 | + |
| 90 | +- http://pavdmyt.com/python-zip-fu/ |
| 91 | +- https://bradmontgomery.net/blog/2013/04/01/pythons-zip-map-and-lambda/ |
| 92 | + |
| 93 | +------ |
| 94 | + |
| 95 | +[总目录](./index.md) | [上节:函数练习](./205.md) | [下节:类(1)](./206.md) |
| 96 | + |
| 97 | + |
Collapse file
Copy file name to clipboardExpand all lines: README.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
55 | 55 | 3. [函数(3)](./203.md)==>收集参数:`*`和`**`,及其逆过程,复习参数知识 |
56 | 56 | 4. [函数(4)](./204.md)==>递归和filter、map、reduce、lambda、yield |
57 | 57 | 5. [函数练习](./205.md)==>解一元二次方程,统计考试成绩,找素数 |
| 58 | +6. [zip()补充](./236.md)==>对zip()函数的用法进行补充说明 |
58 | 59 |
|
59 | 60 | #第贰季 进阶 |
60 | 61 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: index.md +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
55 | 55 | 3. [函数(3)](./203.md)==>收集参数:`*`和`**`,及其逆过程,复习参数知识 |
56 | 56 | 4. [函数(4)](./204.md)==>递归和filter、map、reduce、lambda、yield |
57 | 57 | 5. [函数练习](./205.md)==>解一元二次方程,统计考试成绩,找素数 |
| 58 | +6. [zip()补充](./236.md)==>对zip()函数的用法进行补充说明 |
58 | 59 |
|
59 | 60 | #第贰季 进阶 |
60 | 61 |
|
|