compound if statement
常见例句
- If it finds a match, the corresponding statement (simple or compound) executes.
若发现相符的,就执行对应的语句(简单或复合语句)。 - When you type in the if statement and the terminating colon, then press Return (or Enter) on your keyboard, the Python interpreter realizes you have entered a compound statement.
当键入 if 语句和终止的冒号,并按键盘上的回车键时,Python 解释器就知道您输入了一个复合语句。 - Accessing, adding items to, and deleting items from a dictionary are all simple operations, and dictionaries can be easily incorporated into compound statements like an if statement or a for loop.
访问、添加和删除 dictionary 中的元素都很简单,而且 dictionary 很容易用于复合语句,比如 if 语句或 for 循环。 返回 compound if statement