Update 03. 条件语句.md
This commit is contained in:
@@ -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 语句后的代码。
|
||||
|
||||
Reference in New Issue
Block a user