- 7. 简单语句
7. 简单语句
简单语句由一个单独的逻辑行构成。 多条简单语句可以存在于同一行内并以分号分隔。 简单语句的句法为:
- simple_stmt ::=
expression_stmt
- |
assert_stmt
- |
assignment_stmt
- |
augmented_assignment_stmt
- |
annotated_assignment_stmt
- |
pass_stmt
- |
del_stmt
- |
return_stmt
- |
yield_stmt
- |
raise_stmt
- |
break_stmt
- |
continue_stmt
- |
import_stmt
- |
future_stmt
- |
global_stmt
- |
nonlocal_stmt