A compound statement consists of a flow control instruction, followed by a colon character (:), followed by a block of program statements.
一个复合语句包括一个流控制指令,后跟一个冒号(:),然后再是一个程序语句块。
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解释器就知道您输入了一个复合语句。
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解释器就知道您输入了一个复合语句。
应用推荐