Merge pull request #85 from BruceLee569/patch-1

Update 2-if-else-block-secrets.md
This commit is contained in:
piglei 2022-04-24 11:02:35 +08:00 committed by GitHub
commit 73774f43bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ Python 支持最为常见的 `if/else` 条件分支语句,不过它缺少在
但是因为 Python 使用了缩进来代替 `{}`,所以过深的嵌套分支会产生比其他语言下更为严重的后果。比如过多的缩进层次很容易就会让代码超过 [PEP8](https://www.python.org/dev/peps/pep-0008/) 中规定的每行字数限制。让我们看看这段代码:
```Python
```python
def buy_fruit(nerd, store):
"""去水果店买苹果