Skip to content

Commit

Permalink
Merge pull request jackfrued#8 from fanofxiaofeng/patch-1
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
jackfrued authored Jun 23, 2018
2 parents 25f9630 + 70427b1 commit 3d11921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Day01-15/Day03/分支结构.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ else:
print('f(%.2f) = %.2f' % (x, y))
```

> **说明:**大家可以自己感受一下这两种写法到底是哪一种更好。在之前我们提到的Python之禅中有这么一句话“Flat is bettern than nested.”,之所以提出这个观点是因为嵌套结构的嵌套层次多了之后会严重的影响代码的可读性,如果可以使用扁平化的结构就不要去用嵌套,因此之前的写法是更好的做法。
> **说明:**大家可以自己感受一下这两种写法到底是哪一种更好。在之前我们提到的Python之禅中有这么一句话“Flat is better than nested.”,之所以提出这个观点是因为嵌套结构的嵌套层次多了之后会严重的影响代码的可读性,如果可以使用扁平化的结构就不要去用嵌套,因此之前的写法是更好的做法。
### 练习

Expand Down

0 comments on commit 3d11921

Please sign in to comment.