Update 03. 条件语句.md

This commit is contained in:
LSGOMYP
2020-07-22 16:50:49 +08:00
parent 06b2edda72
commit 354706e53e

View File

@@ -25,7 +25,7 @@ if 2 > 1 and not 2 > 3:
```python
if expression:
expr_true_suite
else
else:
expr_false_suite
```
- Python 提供与 if 搭配使用的 else如果 if 语句的条件表达式结果布尔值为假,那么程序将执行 else 语句后的代码。